Skip to content
Browse files

misc

  • Loading branch information...
1 parent 943e3f2 commit 331d830fcde6593cc918b07a7fbf592507510ab3 @jrnold committed Feb 25, 2016
Showing with 63 additions and 46 deletions.
  1. +2 −6 cran-comments.md
  2. +19 −15 man/geom_rangeframe.Rd
  3. +19 −15 man/geom_tufteboxplot.Rd
  4. +23 −10 man/stat_fivenumber.Rd
View
8 cran-comments.md
@@ -1,10 +1,6 @@
-This is a resubmission after changing grave accents in the Title and Description
-to single quotes.
-
-## R CMD check
+## R CMD check notes
* In `DESCRIPTION`, the words "Fivethirtyeight", "Geoms", "Stata", "Tufte",
"Tufte's", geoms", and "ggplot" are not mis-spelled.
-* URLs http://www.jstor.org/stable/1390760, http://www.jstor.org/stable/2289649
- are valid but sometimes return status 391 or 503 due to redirection.
+* URLs from jstor.org are valid but sometimes return status 391 or 503 due to redirection.
View
34 man/geom_rangeframe.Rd
@@ -13,12 +13,22 @@ geom_rangeframe(mapping = NULL, data = NULL, stat = "identity",
\arguments{
\item{mapping}{Set of aesthetic mappings created by \code{\link{aes}} or
\code{\link{aes_}}. If specified and \code{inherit.aes = TRUE} (the
-default), is combined with the default mapping at the top level of the
-plot. You only need to supply \code{mapping} if there isn't a mapping
-defined for the plot.}
+default), it is combined with the default mapping at the top level of the
+plot. You must supply \code{mapping} if there is no plot mapping.}
-\item{data}{A data frame. If specified, overrides the default data frame
-defined at the top level of the plot.}
+\item{data}{The data to be displayed in this layer. There are three
+ options:
+
+ If \code{NULL}, the default, the data is inherited from the plot
+ data as specified in the call to \code{\link{ggplot}}.
+
+ A \code{data.frame}, or other object, will override the plot
+ data. All objects will be fortified to produce a data frame. See
+ \code{\link{fortify}} for which variables will be created.
+
+ A \code{function} will be called with a single argument,
+ the plot data. The return value must be a \code{data.frame.}, and
+ will be used as the layer data.}
\item{stat}{The statistical transformation to use on the data for this
layer, as a string.}
@@ -42,16 +52,10 @@ rather than combining with them. This is most useful for helper functions
that define both data and aesthetics and shouldn't inherit behaviour from
the default plot specification, e.g. \code{\link{borders}}.}
-\item{...}{other arguments passed on to \code{\link{layer}}. There are
- three types of arguments you can use here:
-
- \itemize{
- \item Aesthetics: to set an aesthetic to a fixed value, like
- \code{color = "red"} or \code{size = 3}.
- \item Other arguments to the layer, for example you override the
- default \code{stat} associated with the layer.
- \item Other arguments passed on to the stat.
- }}
+\item{...}{other arguments passed on to \code{\link{layer}}. These are
+often aesthetics, used to set an aesthetic to a fixed value, like
+\code{color = "red"} or \code{size = 3}. They may also be parameters
+to the paired geom/stat.}
}
\description{
Axis lines which extend to the maximum and minimum of the plotted data.
View
34 man/geom_tufteboxplot.Rd
@@ -15,12 +15,22 @@ geom_tufteboxplot(mapping = NULL, data = NULL, stat = "fivenumber",
\arguments{
\item{mapping}{Set of aesthetic mappings created by \code{\link{aes}} or
\code{\link{aes_}}. If specified and \code{inherit.aes = TRUE} (the
-default), is combined with the default mapping at the top level of the
-plot. You only need to supply \code{mapping} if there isn't a mapping
-defined for the plot.}
+default), it is combined with the default mapping at the top level of the
+plot. You must supply \code{mapping} if there is no plot mapping.}
-\item{data}{A data frame. If specified, overrides the default data frame
-defined at the top level of the plot.}
+\item{data}{The data to be displayed in this layer. There are three
+ options:
+
+ If \code{NULL}, the default, the data is inherited from the plot
+ data as specified in the call to \code{\link{ggplot}}.
+
+ A \code{data.frame}, or other object, will override the plot
+ data. All objects will be fortified to produce a data frame. See
+ \code{\link{fortify}} for which variables will be created.
+
+ A \code{function} will be called with a single argument,
+ the plot data. The return value must be a \code{data.frame.}, and
+ will be used as the layer data.}
\item{stat}{The statistical transformation to use on the data for this
layer, as a string.}
@@ -56,16 +66,10 @@ the default plot specification, e.g. \code{\link{borders}}.}
\item{whisker.type}{If \code{'line'}, then whiskers are represented by lines. If \code{'point'}, then whiskers are represented by points at \code{ymin} and \code{ymax}.}
-\item{...}{other arguments passed on to \code{\link{layer}}. There are
- three types of arguments you can use here:
-
- \itemize{
- \item Aesthetics: to set an aesthetic to a fixed value, like
- \code{color = "red"} or \code{size = 3}.
- \item Other arguments to the layer, for example you override the
- default \code{stat} associated with the layer.
- \item Other arguments passed on to the stat.
- }}
+\item{...}{other arguments passed on to \code{\link{layer}}. These are
+often aesthetics, used to set an aesthetic to a fixed value, like
+\code{color = "red"} or \code{size = 3}. They may also be parameters
+to the paired geom/stat.}
}
\description{
Edward Tufte's revisions of the box plot as described in
View
33 man/stat_fivenumber.Rd
@@ -11,12 +11,24 @@ stat_fivenumber(mapping = NULL, data = NULL, geom = "boxplot", qs = c(0,
show.legend = NA, inherit.aes = TRUE, ...)
}
\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{mapping}{Set of aesthetic mappings created by \code{\link{aes}} or
+\code{\link{aes_}}. If specified and \code{inherit.aes = TRUE} (the
+default), it is combined with the default mapping at the top level of the
+plot. You must supply \code{mapping} if there is no plot mapping.}
-\item{data}{A layer specific dataset - only needed if you want to override
-the plot defaults.}
+\item{data}{The data to be displayed in this layer. There are three
+ options:
+
+ If \code{NULL}, the default, the data is inherited from the plot
+ data as specified in the call to \code{\link{ggplot}}.
+
+ A \code{data.frame}, or other object, will override the plot
+ data. All objects will be fortified to produce a data frame. See
+ \code{\link{fortify}} for which variables will be created.
+
+ A \code{function} will be called with a single argument,
+ the plot data. The return value must be a \code{data.frame.}, and
+ will be used as the layer data.}
\item{geom}{The geometric object to use display the data}
@@ -25,8 +37,8 @@ the plot defaults.}
\item{na.rm}{If \code{FALSE} (the default), removes missing values with
a warning. If \code{TRUE} silently removes missing values.}
-\item{position}{The position adjustment to use for overlapping points
-on this layer}
+\item{position}{Position adjustment, either as a string, or the result of
+a call to a position adjustment function.}
\item{show.legend}{logical. Should this layer be included in the legends?
\code{NA}, the default, includes if any aesthetics are mapped.
@@ -37,9 +49,10 @@ rather than combining with them. This is most useful for helper functions
that define both data and aesthetics and shouldn't inherit behaviour from
the default plot specification, e.g. \code{\link{borders}}.}
-\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.}
+\item{...}{other arguments passed on to \code{\link{layer}}. These are
+often aesthetics, used to set an aesthetic to a fixed value, like
+\code{color = "red"} or \code{size = 3}. They may also be parameters
+to the paired geom/stat.}
}
\value{
A data frame with additional columns:

0 comments on commit 331d830

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