Permalink
Browse files

Reroxygenise

  • Loading branch information...
1 parent 9026463 commit 4136c2fd20cf1c0e7bcf685584d22fb744e5c006 @hadley hadley committed Dec 29, 2011
Showing with 62 additions and 12 deletions.
  1. +1 −0 NAMESPACE
  2. +28 −0 man/aes_auto.Rd
  3. +13 −8 man/geom_boxplot.Rd
  4. +1 −1 man/geom_dotplot.Rd
  5. +14 −0 man/ggplotGrob.Rd
  6. +5 −3 man/stat_boxplot.Rd
View
@@ -1,5 +1,6 @@
export("%+%")
export(aes_all)
+export(aes_auto)
export(aes_string)
export(aes)
export(annotate)
View
@@ -0,0 +1,28 @@
+\name{aes_auto}
+\alias{aes_auto}
+\title{Automatic aesthetic mapping}
+\usage{
+ aes_auto(data = NULL, ...)
+}
+\arguments{
+ \item{data}{data.frame or names of variables}
+
+ \item{...}{aesthetics that need to be explicitly mapped.}
+}
+\description{
+ Automatic aesthetic mapping
+}
+\examples{
+df <- data.frame(x = 1, y = 1, colour = 1, label = 1, pch = 1)
+aes_auto(df)
+aes_auto(names(df))
+
+df <- data.frame(xp = 1, y = 1, colour = 1, txt = 1, foo = 1)
+aes_auto(df, x = xp, label = txt)
+aes_auto(names(df), x = xp, label = txt)
+
+df <- data.frame(foo = 1:3)
+aes_auto(df, x = xp, y = yp)
+aes_auto(df)
+}
+
View
@@ -44,17 +44,22 @@
}
\description{
The upper and lower "hinges" correspond to the first and
- third quartiles. This differs slightly from the method
- used by the \code{boxplot} function, and may be apparent
- with small samples. See \code{\link{boxplot.stats}} for
- for more information on how hinge positions are
- calculated for \code{boxplot}.
+ third quartiles (the 25th and 7th percentiles). This
+ differs slightly from the method used by the
+ \code{boxplot} function, and may be apparent with small
+ samples. See \code{\link{boxplot.stats}} for for more
+ information on how hinge positions are calculated for
+ \code{boxplot}.
}
\details{
+ The upper whisker extends from the hinge to the highest
+ value that is within 1.5 * IQR of the hinge, where IQR is
+ the inter-quartile range, or distance between the first
+ and third quartiles. The lower whisker extends from the
+ hinge to the lowest value within 1.5 * IQR of the hinge.
+
In a notched box plot, the notches extend \code{1.58 *
- IQR / sqrt(n)} from the median where IQR is the
- inter-quartile range, or distance between the first and
- third quartiles. This gives a roughly 95% confidence
+ IQR / sqrt(n)}. This gives a roughly 95% confidence
interval for comparing medians. See McGill et al. (1978)
for more details.
}
View
@@ -4,7 +4,7 @@
\usage{
geom_dotplot(mapping = NULL, data = NULL,
stat = "bindot", position = "identity", na.rm = FALSE,
- binaxis = "x", method = "dotdensity",
+ binwidth = NULL, binaxis = "x", method = "dotdensity",
binpositions = "bygroup", stackdir = "up",
stackratio = 1, dotsize = 1, ...)
}
View
@@ -0,0 +1,14 @@
+\name{ggplotGrob}
+\alias{ggplotGrob}
+\title{Generate a ggplot2 plot grob.}
+\usage{
+ ggplotGrob(x)
+}
+\arguments{
+ \item{x}{ggplot2 object}
+}
+\description{
+ Generate a ggplot2 plot grob.
+}
+\keyword{internal}
+
View
@@ -34,13 +34,15 @@
}
\value{
A data frame with additional columns: \item{width}{width
- of boxplot} \item{ymin}{lower whisker = lower hinge - 1.5
- * IQR} \item{lower}{lower hinge, 25\% quantile}
+ of boxplot} \item{ymin}{lower whisker = smallest
+ observation greater than or equal to lower hinge - 1.5 *
+ IQR} \item{lower}{lower hinge, 25\% quantile}
\item{notchlower}{lower edge of notch = median - 1.58 *
IQR / sqrt(n)} \item{middle}{median, 50\% quantile}
\item{notchupper}{upper edge of notch = median + 1.58 *
IQR / sqrt(n)} \item{upper}{upper hinge, 75\% quantile}
- \item{ymax}{upper whisker = upper hinge + 1.5 * IQR}
+ \item{ymax}{upper whisker = largest observation less than
+ or equal to upper hinge + 1.5 * IQR}
}
\description{
Calculate components of box and whisker plot.

0 comments on commit 4136c2f

Please sign in to comment.