Skip to content

Commit e20e1a2

Browse files
committed
canonise line params
1 parent e36e034 commit e20e1a2

28 files changed

+67
-55
lines changed

R/geom-bar.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ GeomBar <- ggproto(
8585
#' @param geom,stat Override the default connection between `geom_bar()` and
8686
#' `stat_count()`. For more information about overriding these connections,
8787
#' see how the [stat][layer_stats] and [geom][layer_geoms] arguments work.
88-
#' @param lineend Line end style (round, butt, square).
89-
#' @param linejoin Line join style (round, mitre, bevel).
9088
#' @examples
9189
#' # geom_bar is designed to make it easy to create bar charts that show
9290
#' # counts (or sums of weights)

R/geom-bin2d.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ GeomBin2d <- ggproto("GeomBin2d", GeomTile)
2222
#' `geom_bin_2d()` and `stat_bin_2d()`. For more information about overriding
2323
#' these connections, see how the [stat][layer_stats] and [geom][layer_geoms]
2424
#' arguments work.
25-
#' @param lineend Line end style (round, butt, square).
26-
#' @param linejoin Line join style (round, mitre, bevel).
2725
#' @seealso [stat_bin_hex()] for hexagonal binning
2826
#' @examples
2927
#' d <- ggplot(diamonds, aes(x, y)) + xlim(4, 10) + ylim(4, 10)

R/geom-hex.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ GeomHex <- ggproto("GeomHex", Geom,
8181
#' see how the [stat][layer_stats] and [geom][layer_geoms] arguments work.
8282
#' @export
8383
#' @inheritParams shared_layer_parameters
84-
#' @param lineend Line end style (round, butt, square).
85-
#' @param linejoin Line join style (round, mitre, bevel).
86-
#' @param linemitre Line mitre limit (number greater than 1).
8784
#' @export
8885
#' @examples
8986
#' d <- ggplot(diamonds, aes(carat, price))

R/geom-path.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,6 @@ GeomStep <- ggproto(
182182
#'
183183
#' @aesthetics GeomPath
184184
#' @inheritParams shared_layer_parameters
185-
#' @param lineend Line end style (round, butt, square).
186-
#' @param linejoin Line join style (round, mitre, bevel).
187-
#' @param linemitre Line mitre limit (number greater than 1).
188185
#' @param arrow Arrow specification, as created by [grid::arrow()].
189186
#' @param arrow.fill fill colour to use for the arrow head (if closed). `NULL`
190187
#' means use `colour` aesthetic.

R/geom-polygon.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ GeomPolygon <- ggproto("GeomPolygon", Geom,
106106
#' [geom_ribbon()] for a polygon anchored on the x-axis
107107
#' @export
108108
#' @inheritParams shared_layer_parameters
109-
#' @param lineend Line end style (round, butt, square).
110-
#' @param linejoin Line join style (round, mitre, bevel).
111-
#' @param linemitre Line mitre limit (number greater than 1).
112109
#' @param rule Either `"evenodd"` or `"winding"`. If polygons with holes are
113110
#' being drawn (using the `subgroup` aesthetic) this argument defines how the
114111
#' hole coordinates are interpreted. See the examples in [grid::pathGrob()] for

R/geom-ribbon.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ GeomArea <- ggproto("GeomArea", GeomRibbon,
249249
#' [geom_linerange()] for discrete intervals (lines),
250250
#' [geom_polygon()] for general polygons
251251
#' @inheritParams shared_layer_parameters
252-
#' @param linemitre Line mitre limit (number greater than 1).
253252
#' @param outline.type Type of the outline of the area; `"both"` draws both the
254253
#' upper and lower lines, `"upper"`/`"lower"` draws the respective lines only.
255254
#' `"full"` draws a closed polygon around the area.

R/geom-rug.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ GeomRug <- ggproto("GeomRug", Geom,
139139
#' bottom, and left.
140140
#' @param outside logical that controls whether to move the rug tassels outside of the plot area. Default is off (FALSE). You will also need to use `coord_cartesian(clip = "off")`. When set to TRUE, also consider changing the sides argument to "tr". See examples.
141141
#' @param length A [grid::unit()] object that sets the length of the rug lines. Use scale expansion to avoid overplotting of data.
142-
#' @param lineend Line end style (round, butt, square).
143142
#' @export
144143
#' @examples
145144
#' p <- ggplot(mtcars, aes(wt, mpg)) +

R/geom-segment.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ GeomSegment <- ggproto(
6969
#' @param arrow specification for arrow heads, as created by [grid::arrow()].
7070
#' @param arrow.fill fill colour to use for the arrow head (if closed). `NULL`
7171
#' means use `colour` aesthetic.
72-
#' @param lineend Line end style (round, butt, square).
73-
#' @param linejoin Line join style (round, mitre, bevel).
7472
#' @seealso [geom_path()] and [geom_line()] for multi-
7573
#' segment lines and paths.
7674
#' @seealso [geom_spoke()] for a segment parameterised by a location

R/layer.R

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,16 @@
100100
#' * The `key_glyph` argument of [`layer()`] may also be passed on through
101101
#' `...`. This can be one of the functions described as
102102
#' [key glyphs][draw_key], to change the display of the layer in the legend.
103-
103+
#'
104+
#' @param lineend
105+
#' Line end style, one of `"round"`, `"butt"` or `"square"`.
106+
#'
107+
#' @param linejoin
108+
#' Line join style, one of `"round"`, `"mitre"` or `"bevel"`.
109+
#'
110+
#' @param linemitre
111+
#' Line mitre limit, a number greater than 1.
112+
#'
104113
#' @param orientation
105114
#' The orientation of the layer. The default (`NA`) automatically determines the
106115
#' orientation from the aesthetic mapping. In the rare event that this fails it

man/annotation_borders.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)