Skip to content

Commit 0b49d14

Browse files
committed
canonise orientation arg
1 parent 560cedc commit 0b49d14

21 files changed

+51
-39
lines changed

R/geom-bar.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ GeomBar <- ggproto(
7777
#' bar charts.
7878
#' @export
7979
#' @inheritParams shared_layer_parameters
80-
#' @param orientation The orientation of the layer. The default (`NA`)
81-
#' automatically determines the orientation from the aesthetic mapping. In the
82-
#' rare event that this fails it can be given explicitly by setting `orientation`
83-
#' to either `"x"` or `"y"`. See the *Orientation* section for more detail.
8480
#' @param just Adjustment for column placement. Set to `0.5` by default, meaning
8581
#' that columns will be centered about axis breaks. Set to `0` or `1` to place
8682
#' columns to the left/right of axis breaks. Note that this argument may have

R/geom-boxplot.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#' [geom_violin()] for a richer display of the distribution, and
3131
#' [geom_jitter()] for a useful technique for small data.
3232
#' @inheritParams shared_layer_parameters
33-
#' @inheritParams geom_bar
3433
#' @param geom,stat Use to override the default connection between
3534
#' `geom_boxplot()` and `stat_boxplot()`. For more information about
3635
#' overriding these connections, see how the [stat][layer_stats] and

R/geom-density.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ GeomDensity <- ggproto(
2727
#' other methods of displaying continuous distribution.
2828
#' See [geom_violin()] for a compact density display.
2929
#' @inheritParams shared_layer_parameters
30-
#' @inheritParams geom_bar
3130
#' @inheritParams geom_ribbon
3231
#' @param geom,stat Use to override the default connection between
3332
#' `geom_density()` and `stat_density()`. For more information about

R/geom-histogram.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#'
3636
#' @export
3737
#' @inheritParams shared_layer_parameters
38-
#' @inheritParams geom_bar
3938
#' @param geom,stat Use to override the default connection between
4039
#' `geom_histogram()`/`geom_freqpoly()` and `stat_bin()`. For more information
4140
#' at overriding these connections, see how the [stat][layer_stats] and

R/geom-linerange.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ GeomLinerange <- ggproto(
5454
#' [geom_smooth()] for continuous analogue
5555
#' @export
5656
#' @inheritParams shared_layer_parameters
57-
#' @inheritParams geom_bar
5857
#' @examples
5958
#' # Create a simple example dataset
6059
#' df <- data.frame(

R/geom-path.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ GeomStep <- ggproto(
182182
#'
183183
#' @aesthetics GeomPath
184184
#' @inheritParams shared_layer_parameters
185-
#' @inheritParams geom_bar
186185
#' @param lineend Line end style (round, butt, square).
187186
#' @param linejoin Line join style (round, mitre, bevel).
188187
#' @param linemitre Line mitre limit (number greater than 1).

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-
#' @inheritParams geom_bar
253252
#' @param linemitre Line mitre limit (number greater than 1).
254253
#' @param outline.type Type of the outline of the area; `"both"` draws both the
255254
#' upper and lower lines, `"upper"`/`"lower"` draws the respective lines only.

R/geom-smooth.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ GeomSmooth <- ggproto(
7878
#'
7979
#' @aesthetics GeomSmooth
8080
#' @inheritParams shared_layer_parameters
81-
#' @inheritParams geom_bar
8281
#' @param geom,stat Use to override the default connection between
8382
#' `geom_smooth()` and `stat_smooth()`. For more information about overriding
8483
#' these connections, see how the [stat][layer_stats] and [geom][layer_geoms]

R/geom-violin.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#'
1010
#' @aesthetics GeomViolin
1111
#' @inheritParams shared_layer_parameters
12-
#' @inheritParams geom_bar
1312
#' @param trim If `TRUE` (default), trim the tails of the violins
1413
#' to the range of the data. If `FALSE`, don't trim the tails.
1514
#' @param geom,stat Use to override the default connection between

R/layer.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@
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+
104+
#' @param orientation
105+
#' The orientation of the layer. The default (`NA`) automatically determines the
106+
#' orientation from the aesthetic mapping. In the rare event that this fails it
107+
#' can be given explicitly by setting `orientation` to either `"x"` or `"y"`.
108+
#' See the *Orientation* section for more detail.
103109
#'
104110
#' @keywords internal
105111
#' @aliases NULL

0 commit comments

Comments
 (0)