Skip to content
Browse files

Inherit geom parameters

  • Loading branch information...
1 parent 2ffa290 commit 7b5d0a739915988d52550c6fa60b30b05b3daa8d @hadley committed Dec 21, 2011
Showing with 736 additions and 0 deletions.
  1. +1 −0 R/geom-abline.r
  2. +1 −0 R/geom-bar-.r
  3. +1 −0 R/geom-bar-histogram.r
  4. +1 −0 R/geom-bin2d.r
  5. +1 −0 R/geom-blank.r
  6. +1 −0 R/geom-boxplot.r
  7. +1 −0 R/geom-crossbar.r
  8. +1 −0 R/geom-error.r
  9. +1 −0 R/geom-errorh.r
  10. +1 −0 R/geom-freqpoly.r
  11. +1 −0 R/geom-hex.r
  12. +1 −0 R/geom-hline.r
  13. +1 −0 R/geom-linerange.r
  14. +1 −0 R/geom-map.r
  15. +1 −0 R/geom-path-.r
  16. +1 −0 R/geom-path-contour.r
  17. +1 −0 R/geom-path-density2d.r
  18. +1 −0 R/geom-path-line.r
  19. +1 −0 R/geom-path-step.r
  20. +1 −0 R/geom-point-jitter.r
  21. +1 −0 R/geom-pointrange.r
  22. +1 −0 R/geom-polygon.r
  23. +1 −0 R/geom-quantile.r
  24. +1 −0 R/geom-raster.r
  25. +1 −0 R/geom-rect.r
  26. +2 −0 R/geom-ribbon-.r
  27. +1 −0 R/geom-ribbon-density.r
  28. +1 −0 R/geom-rug.r
  29. +1 −0 R/geom-segment.r
  30. +1 −0 R/geom-smooth.r
  31. +1 −0 R/geom-text.r
  32. +1 −0 R/geom-tile.r
  33. +1 −0 R/geom-vline.r
  34. +20 −0 man/geom_abline.Rd
  35. +24 −0 man/geom_area.Rd
  36. +20 −0 man/geom_bar.Rd
  37. +20 −0 man/geom_bin2d.Rd
  38. +20 −0 man/geom_blank.Rd
  39. +19 −0 man/geom_boxplot.Rd
  40. +24 −0 man/geom_contour.Rd
  41. +19 −0 man/geom_crossbar.Rd
  42. +24 −0 man/geom_density.Rd
  43. +24 −0 man/geom_density2d.Rd
  44. +20 −0 man/geom_errorbar.Rd
  45. +19 −0 man/geom_errorbarh.Rd
  46. +20 −0 man/geom_freqpoly.Rd
  47. +20 −0 man/geom_hex.Rd
  48. +20 −0 man/geom_histogram.Rd
  49. +20 −0 man/geom_hline.Rd
  50. +24 −0 man/geom_jitter.Rd
  51. +20 −0 man/geom_line.Rd
  52. +20 −0 man/geom_linerange.Rd
  53. +17 −0 man/geom_map.Rd
  54. +23 −0 man/geom_path.Rd
  55. +20 −0 man/geom_pointrange.Rd
  56. +20 −0 man/geom_polygon.Rd
  57. +24 −0 man/geom_quantile.Rd
  58. +20 −0 man/geom_raster.Rd
  59. +20 −0 man/geom_rect.Rd
  60. +24 −0 man/geom_ribbon.Rd
  61. +20 −0 man/geom_rug.Rd
  62. +19 −0 man/geom_segment.Rd
  63. +20 −0 man/geom_smooth.Rd
  64. +19 −0 man/geom_step.Rd
  65. +19 −0 man/geom_text.Rd
  66. +20 −0 man/geom_tile.Rd
  67. +20 −0 man/geom_vline.Rd
View
1 R/geom-abline.r
@@ -15,6 +15,7 @@
#' \code{\link{geom_hline}} for horizontal lines,
#' \code{\link{geom_vline}} for vertical lines
#' \code{\link{geom_segment}}
+#' @inheritParams geom_point
#' @export
#' @examples
#' p <- qplot(wt, mpg, data = mtcars)
View
1 R/geom-bar-.r
@@ -33,6 +33,7 @@
#' \code{\link{position_dodge}} for creating side-by-side barcharts,
#' \code{\link{position_stack}} for more info on stacking,
#' @export
+#' @inheritParams geom_point
#' @examples
#' # Generate data
#' c <- ggplot(mtcars, aes(factor(cyl)))
View
1 R/geom-bar-histogram.r
@@ -10,6 +10,7 @@
#'
#'
#' @export
+#' @inheritParams geom_point
#' @examples
#' # Simple examples
#' qplot(rating, data=movies, geom="histogram")
View
1 R/geom-bin2d.r
@@ -1,6 +1,7 @@
#' Add heatmap of 2d bin counts.
#'
#' @export
+#' @inheritParams geom_point
#' @examples
#' d <- ggplot(diamonds, aes(x = x, y = y)) + xlim(4,10) + ylim(4,10)
#' d + geom_bin2d()
View
1 R/geom-blank.r
@@ -4,6 +4,7 @@
#' scales between different plots.
#'
#' @export
+#' @inheritParams geom_point
#' @examples
#' qplot(length, rating, data=movies, geom="blank")
#' # Nothing to see here!
View
1 R/geom-boxplot.r
@@ -14,6 +14,7 @@
#' @seealso \code{\link{stat_quantile}} to view quantiles conditioned on a
#' continuous variable, \code{\link{geom_jitter}} for another way to look
#' at conditional distributions"
+#' @inheritParams geom_point
#' @param outlier.colour colour for outlying points
#' @param outlier.shape shape of outlying points
#' @param outlier.size size of outlying points
View
1 R/geom-crossbar.r
@@ -1,5 +1,6 @@
#' Hollow bar with middle indicated by horizontal line.
#'
+#' @inheritParams geom_point
#' @param fatten a multiplicate factor to fatten middle bar by
#' @seealso \code{\link{geom_errorbar}} for error bars,
#' \code{\link{geom_pointrange}} and \code{\link{geom_linerange}} for other
View
1 R/geom-error.r
@@ -5,6 +5,7 @@
#' by straight line; \code{\link{geom_crossbar}}: hollow bar with middle
#' indicated by horizontal line; \code{\link{stat_summary}}: examples of
#' these guys in use, \code{\link{geom_smooth}} for continuous analog
+#' @inheritParams geom_point
#' @export
#' @examples
#' # Create a simple example dataset
View
1 R/geom-errorh.r
@@ -1,6 +1,7 @@
#' Horizontal error bars
#'
#' @seealso \code{\link{geom_errorbar}}: vertical error bars
+#' @inheritParams geom_point
#' @param height height of errorbars
#' @export
#' @examples
View
1 R/geom-freqpoly.r
@@ -1,6 +1,7 @@
#' Frequency polygon.
#'
#' @seealso \code{\link{geom_histogram}}: histograms
+#' @inheritParams geom_point
#' @export
#' @examples
#' qplot(carat, data = diamonds, geom = "freqpoly")
View
1 R/geom-hex.r
@@ -1,6 +1,7 @@
#' Hexagon bining.
#'
#' @export
+#' @inheritParams geom_point
#' @examples
#' # See ?stat_binhex for examples
geom_hex <- function (mapping = NULL, data = NULL, stat = "binhex", position = "identity", ...) {
View
1 R/geom-hline.r
@@ -14,6 +14,7 @@
#' \code{\link{geom_abline}} for lines defined by a slope and intercept,
#' \code{\link{geom_segment}} for a more general approach
#' @export
+#' @inheritParams geom_point
#' @examples
#' p <- ggplot(mtcars, aes(x = wt, y=mpg)) + geom_point()
#'
View
1 R/geom-linerange.r
@@ -6,6 +6,7 @@
#' indicated by horizontal line; \code{\link{stat_summary}}: examples of
#' these guys in use; \code{\link{geom_smooth}}: for continuous analog
#' @export
+#' @inheritParams geom_point
#' @examples
#' # Generate data: means and standard errors of means for prices
#' # for each type of cut
View
1 R/geom-map.r
@@ -6,6 +6,7 @@ NULL
#' Does not affect position scales.
#'
#' @export
+#' @inheritParams geom_point
#' @examples
#' # When using geom_polygon, you will typically need two data frames:
#' # one contains the coordinates of each polygon (positions), and the
View
1 R/geom-path-.r
@@ -1,5 +1,6 @@
#' Connect observations in original order
#'
+#' @inheritParams geom_point
#' @param lineend Line end style (round, butt, square)
#' @param linejoin Line join style (round, mitre, bevel)
#' @param linemitre Line mitre limit (number greater than 1)
View
1 R/geom-path-contour.r
@@ -1,5 +1,6 @@
#' Display contours of a 3d surface in 2d.
#'
+#' @inheritParams geom_point
#' @seealso \code{\link{geom_density2d}}: 2d density contours
#' @export
#' @examples
View
1 R/geom-path-density2d.r
@@ -7,6 +7,7 @@
#'
#' @seealso \code{\link{geom_contour}} for contour drawing geom,
#' \code{\link{stat_sum}} for another way of dealing with overplotting
+#' @inheritParams geom_point
#' @export
#' @examples
#' # See stat_density2d for examples
View
1 R/geom-path-line.r
@@ -3,6 +3,7 @@
#' @seealso \code{\link{geom_path}}: connect observations in data order,
#' \code{\link{geom_segment}}: draw line segments,
#' \code{\link{geom_ribbon}}: fill between line and x-axis
+#' @inheritParams geom_point
#' @export
#' @examples
#' # Summarise number of movie ratings by year of movie
View
1 R/geom-path-step.r
@@ -1,5 +1,6 @@
#' Connect observations by stairs.
#'
+#' @inheritParams geom_point
#' @param direction direction of stairs: 'vh' for vertical then horizontal, or
#' 'hv' for horizontal then vertical
#' @export
View
1 R/geom-point-jitter.r
@@ -4,6 +4,7 @@
#' 'jitter'. See \code{\link{position_jitter}} to see how to adjust amount
#' of jittering.
#'
+#' @inheritParams geom_point
#' @seealso
#' \code{\link{geom_point}} for regular, unjittered points,
#' \code{\link{geom_boxplot}} for another way of looking at the conditional
View
1 R/geom-pointrange.r
@@ -1,5 +1,6 @@
#' An interval represented by a vertical line, with a point in the middle.
#'
+#' @inheritParams geom_point
#' @seealso
#' \code{\link{geom_errorbar}} for error bars,
#' \code{\link{geom_linerange}} for range indicated by straight line, + examples,
View
1 R/geom-polygon.r
@@ -4,6 +4,7 @@
#' \code{\link{geom_path}} for an unfilled polygon,
#' \code{\link{geom_ribbon}} for a polygon anchored on the x-axis
#' @export
+#' @inheritParams geom_point
#' @examples
#' # When using geom_polygon, you will typically need two data frames:
#' # one contains the coordinates of each polygon (positions), and the
View
1 R/geom-quantile.r
@@ -3,6 +3,7 @@
#' This can be used as a continuous analogue of a geom_boxplot.
#'
#' @export
+#' @inheritParams geom_point
#' @examples
#' # See stat_quantile for examples
geom_quantile <- function (mapping = NULL, data = NULL, stat = "quantile", position = "identity",
View
1 R/geom-raster.r
@@ -7,6 +7,7 @@ NULL
#' the same size. It is implemented highly efficiently using the internal
#' \code{rasterGrob} function.
#'
+#' @inheritParams geom_point
#' @export
#' @examples
#' # Generate data
View
1 R/geom-rect.r
@@ -1,5 +1,6 @@
#' 2d rectangles.
#'
+#' @inheritParams geom_point
#' @export
#' @examples
#' df <- data.frame(
View
2 R/geom-ribbon-.r
@@ -4,6 +4,7 @@
#' \code{\link{geom_bar}} for discrete intervals (bars),
#' \code{\link{geom_linerange}} for discrete intervals (lines),
#' \code{\link{geom_polygon}} for general polygons"
+#' @inheritParams geom_point
#' @export
#' @examples
#' # Generate data
@@ -104,6 +105,7 @@ GeomRibbon <- proto(Geom, {
#' minimum of the range is fixed to 0, and the position adjustment defaults
#' to position_stacked.
#'
+#' @inheritParams geom_point
#' @export
#' @examples
#' # see geom_ribbon
View
1 R/geom-ribbon-density.r
@@ -3,6 +3,7 @@
#' A smooth density estimate calculated by \code{\link{stat_density}}.
#'
#' @seealso \code{\link{geom_histogram}} for the histogram
+#' @inheritParams geom_point
#' @export
#' @examples
#' # See stat_density for examples
View
1 R/geom-rug.r
@@ -1,5 +1,6 @@
#' Marginal rug plots.
#'
+#' @inheritParams geom_point
#' @export
#' @examples
#' p <- ggplot(mtcars, aes(x=wt, y=mpg))
View
1 R/geom-segment.r
@@ -1,5 +1,6 @@
#' Single line segments.
#'
+#' @inheritParams geom_point
#' @param arrow specification for arrow heads, as created by arrow()
#' @seealso \code{\link{geom_path}} and \code{\link{geom_line}} for multi-
#' segment lines and paths.
View
1 R/geom-smooth.r
@@ -1,5 +1,6 @@
#' Add a smoothed conditional mean.
#'
+#' @inheritParams geom_point
#' @export
#' @examples
#' # See stat_smooth for examples of using built in model fitting
View
1 R/geom-text.r
@@ -1,5 +1,6 @@
#' Textual annotations.
#'
+#' @inheritParams geom_point
#' @param parse If TRUE, the labels will be parsed into expressions and
#' displayed as described in ?plotmath
#' @export
View
1 R/geom-tile.r
@@ -2,6 +2,7 @@
#'
#' Similar to \code{\link{levelplot}} and \code{\link{image}}.
#'
+#' @inheritParams geom_point
#' @export
#' @examples
#' # Generate data
View
1 R/geom-vline.r
@@ -10,6 +10,7 @@
#' intercept for each panel using a data.frame. See the examples for the
#' differences.
#'
+#' @inheritParams geom_point
#' @seealso
#' \code{\link{geom_hline}} for horizontal lines,
#' \code{\link{geom_abline}} for lines defined by a slope and intercept,
View
20 man/geom_abline.Rd
@@ -5,6 +5,26 @@
geom_abline(mapping = NULL, data = NULL, stat = "abline",
position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
The abline geom adds a line with specified slope and
intercept to the plot.
View
24 man/geom_area.Rd
@@ -5,6 +5,30 @@
geom_area(mapping = NULL, data = NULL, stat = "identity",
position = "stack", na.rm = FALSE, ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{na.rm}{If \code{FALSE} (the default), removes
+ missing values with a warning. If \code{TRUE} silently
+ removes missing values.}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
An area plot is the continuous analog of a stacked bar
chart (see \code{\link{geom_bar}}), and can be used to
View
20 man/geom_bar.Rd
@@ -5,6 +5,26 @@
geom_bar(mapping = NULL, data = NULL, stat = "bin",
position = "stack", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
The bar geom is used to produce 1d area plots: bar charts
for categorical x, and histograms for continuous y.
View
20 man/geom_bin2d.Rd
@@ -5,6 +5,26 @@
geom_bin2d(mapping = NULL, data = NULL, stat = "bin2d",
position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Add heatmap of 2d bin counts.
}
View
20 man/geom_blank.Rd
@@ -5,6 +5,26 @@
geom_blank(mapping = NULL, data = NULL,
stat = "identity", position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
The blank geom draws nothing, but can be a useful way of
ensuring common scales between different plots.
View
19 man/geom_boxplot.Rd
@@ -22,6 +22,25 @@
\item{notchwidth}{for a notched box plot, width of the
notch relative to the body (default 0.5)}
+
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
}
\description{
The upper and lower "hinges" correspond to the first and
View
24 man/geom_contour.Rd
@@ -7,6 +7,30 @@
lineend = "butt", linejoin = "round", linemitre = 1,
na.rm = FALSE, ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{na.rm}{If \code{FALSE} (the default), removes
+ missing values with a warning. If \code{TRUE} silently
+ removes missing values.}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Display contours of a 3d surface in 2d.
}
View
19 man/geom_crossbar.Rd
@@ -9,6 +9,25 @@
\arguments{
\item{fatten}{a multiplicate factor to fatten middle bar
by}
+
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
}
\description{
Hollow bar with middle indicated by horizontal line.
View
24 man/geom_density.Rd
@@ -6,6 +6,30 @@
stat = "density", position = "identity", na.rm = FALSE,
...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{na.rm}{If \code{FALSE} (the default), removes
+ missing values with a warning. If \code{TRUE} silently
+ removes missing values.}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
A smooth density estimate calculated by
\code{\link{stat_density}}.
View
24 man/geom_density2d.Rd
@@ -7,6 +7,30 @@
lineend = "butt", linejoin = "round", linemitre = 1,
na.rm = FALSE, ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{na.rm}{If \code{FALSE} (the default), removes
+ missing values with a warning. If \code{TRUE} silently
+ removes missing values.}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Perform a 2D kernel density estimatation using kde2d and
display the results with contours.
View
20 man/geom_errorbar.Rd
@@ -5,6 +5,26 @@
geom_errorbar(mapping = NULL, data = NULL,
stat = "identity", position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Error bars.
}
View
19 man/geom_errorbarh.Rd
@@ -7,6 +7,25 @@
}
\arguments{
\item{height}{height of errorbars}
+
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
}
\description{
Horizontal error bars
View
20 man/geom_freqpoly.Rd
@@ -5,6 +5,26 @@
geom_freqpoly(mapping = NULL, data = NULL, stat = "bin",
position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Frequency polygon.
}
View
20 man/geom_hex.Rd
@@ -5,6 +5,26 @@
geom_hex(mapping = NULL, data = NULL, stat = "binhex",
position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Hexagon bining.
}
View
20 man/geom_histogram.Rd
@@ -5,6 +5,26 @@
geom_histogram(mapping = NULL, data = NULL, stat = "bin",
position = "stack", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
\code{geom_histogram} is an alias for
\code{\link{geom_bar}} plus \code{\link{stat_bin}} so you
View
20 man/geom_hline.Rd
@@ -5,6 +5,26 @@
geom_hline(mapping = NULL, data = NULL, stat = "hline",
position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
This geom allows you to annotate the plot with horizontal
lines (see \code{\link{geom_vline}} and
View
24 man/geom_jitter.Rd
@@ -6,6 +6,30 @@
stat = "identity", position = "jitter", na.rm = FALSE,
...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{na.rm}{If \code{FALSE} (the default), removes
+ missing values with a warning. If \code{TRUE} silently
+ removes missing values.}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
The jitter geom is a convenient default for geom_point
with position = 'jitter'. See
View
20 man/geom_line.Rd
@@ -5,6 +5,26 @@
geom_line(mapping = NULL, data = NULL, stat = "identity",
position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Connect observations, ordered by x value.
}
View
20 man/geom_linerange.Rd
@@ -5,6 +5,26 @@
geom_linerange(mapping = NULL, data = NULL,
stat = "identity", position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
An interval represented by a vertical line.
}
View
17 man/geom_map.Rd
@@ -5,6 +5,23 @@
geom_map(mapping = NULL, data = NULL, map,
stat = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Does not affect position scales.
}
View
23 man/geom_path.Rd
@@ -16,6 +16,29 @@
\item{arrow}{Arrow specification, as created by
?grid::arrow}
+
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{na.rm}{If \code{FALSE} (the default), removes
+ missing values with a warning. If \code{TRUE} silently
+ removes missing values.}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
}
\description{
Connect observations in original order
View
20 man/geom_pointrange.Rd
@@ -5,6 +5,26 @@
geom_pointrange(mapping = NULL, data = NULL,
stat = "identity", position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
An interval represented by a vertical line, with a point
in the middle.
View
20 man/geom_polygon.Rd
@@ -5,6 +5,26 @@
geom_polygon(mapping = NULL, data = NULL,
stat = "identity", position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Polygon, a filled path.
}
View
24 man/geom_quantile.Rd
@@ -7,6 +7,30 @@
lineend = "butt", linejoin = "round", linemitre = 1,
na.rm = FALSE, ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{na.rm}{If \code{FALSE} (the default), removes
+ missing values with a warning. If \code{TRUE} silently
+ removes missing values.}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
This can be used as a continuous analogue of a
geom_boxplot.
View
20 man/geom_raster.Rd
@@ -5,6 +5,26 @@
geom_raster(mapping = NULL, data = NULL,
stat = "identity", position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
This is a special case of \code{\link{geom_tile}} where
all tiles are the same size. It is implemented highly
View
20 man/geom_rect.Rd
@@ -5,6 +5,26 @@
geom_rect(mapping = NULL, data = NULL, stat = "identity",
position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
2d rectangles.
}
View
24 man/geom_ribbon.Rd
@@ -6,6 +6,30 @@
stat = "identity", position = "identity",
na.rm = FALSE, ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{na.rm}{If \code{FALSE} (the default), removes
+ missing values with a warning. If \code{TRUE} silently
+ removes missing values.}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Ribbons, y range with continuous x values.
}
View
20 man/geom_rug.Rd
@@ -5,6 +5,26 @@
geom_rug(mapping = NULL, data = NULL, stat = "identity",
position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Marginal rug plots.
}
View
19 man/geom_segment.Rd
@@ -8,6 +8,25 @@
\arguments{
\item{arrow}{specification for arrow heads, as created by
arrow()}
+
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
}
\description{
Single line segments.
View
20 man/geom_smooth.Rd
@@ -5,6 +5,26 @@
geom_smooth(mapping = NULL, data = NULL, stat = "smooth",
position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Add a smoothed conditional mean.
}
View
19 man/geom_step.Rd
@@ -8,6 +8,25 @@
\arguments{
\item{direction}{direction of stairs: 'vh' for vertical
then horizontal, or 'hv' for horizontal then vertical}
+
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
}
\description{
Connect observations by stairs.
View
19 man/geom_text.Rd
@@ -8,6 +8,25 @@
\arguments{
\item{parse}{If TRUE, the labels will be parsed into
expressions and displayed as described in ?plotmath}
+
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
}
\description{
Textual annotations.
View
20 man/geom_tile.Rd
@@ -5,6 +5,26 @@
geom_tile(mapping = NULL, data = NULL, stat = "identity",
position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
Similar to \code{\link{levelplot}} and
\code{\link{image}}.
View
20 man/geom_vline.Rd
@@ -5,6 +5,26 @@
geom_vline(mapping = NULL, data = NULL, stat = "vline",
position = "identity", ...)
}
+\arguments{
+ \item{mapping}{The aesthetic mapping, usually constructed
+ with \code{\link{aes}} or \code{\link{aes_string}}. Only
+ needs to be set at the layer level if you are overriding
+ the plot defaults.}
+
+ \item{data}{A layer specific dataset - only needed if you
+ want to override the plot defaults.}
+
+ \item{stat}{The statistical transformation to use on the
+ data for this layer.}
+
+ \item{position}{The position adjustment to use for
+ overlappling points on this layer}
+
+ \item{...}{other arguments passed on to
+ \code{\link{layer}}. This can include aesthetics whose
+ values you want to set, not map. See \code{\link{layer}}
+ for more details.}
+}
\description{
This geom allows you to annotate the plot with vertical
lines (see \code{\link{geom_hline}} and

0 comments on commit 7b5d0a7

Please sign in to comment.
Something went wrong with that request. Please try again.