Skip to content
Browse files

Re-roxygenise

  • Loading branch information...
1 parent 4e44907 commit e07a2702921d7c1d2ea6f621636cbb8faa63091e @hadley committed Apr 11, 2012
Showing with 11 additions and 11 deletions.
  1. +3 −3 man/coord_fixed.Rd
  2. +2 −2 man/geom_text.Rd
  3. +1 −1 man/scale_brewer.Rd
  4. +1 −1 man/scale_gradient.Rd
  5. +1 −1 man/scale_gradient2.Rd
  6. +1 −1 man/scale_gradientn.Rd
  7. +1 −1 man/scale_grey.Rd
  8. +1 −1 man/scale_hue.Rd
View
6 man/coord_fixed.Rd
@@ -33,9 +33,9 @@
# ensures that the ranges of axes are equal to the specified ratio by
# adjusting the plot aspect ratio
-qplot(mpg, wt, data = mtcars) + coord_equal(ratio = 1)
-qplot(mpg, wt, data = mtcars) + coord_equal(ratio = 5)
-qplot(mpg, wt, data = mtcars) + coord_equal(ratio = 1/5)
+qplot(mpg, wt, data = mtcars) + coord_fixed(ratio = 1)
+qplot(mpg, wt, data = mtcars) + coord_fixed(ratio = 5)
+qplot(mpg, wt, data = mtcars) + coord_fixed(ratio = 1/5)
# Resize the plot to see that the specified aspect ratio is maintained
}
View
4 man/geom_text.Rd
@@ -60,7 +60,7 @@ p + geom_text(aes(label = paste(wt, "^(", cyl, ")", sep = "")),
# Add an annotation not from a variable source
c <- ggplot(mtcars, aes(wt, mpg)) + geom_point()
-c + geom_text(data = data.frame(), aes(5, 30, label = "plot mpg vs. wt"))
+c + geom_text(data = NULL, x = 5, y = 30, label = "plot mpg vs. wt")
# Or, you can use annotate
c + annotate("text", label = "plot mpg vs. wt", x = 2, y = 15, size = 8, colour = "red")
@@ -70,7 +70,7 @@ qplot(wt, mpg, data = mtcars, label = rownames(mtcars),
qplot(wt, mpg, data = mtcars, label = rownames(mtcars), size = wt) +
geom_text(colour = "red")
-# You can specify fontfamily, fontface and lineheight
+# You can specify family, fontface and lineheight
p <- ggplot(mtcars, aes(x=wt, y=mpg, label=rownames(mtcars)))
p + geom_text(fontface=3)
p + geom_text(aes(fontface=am+1))
View
2 man/scale_brewer.Rd
@@ -19,7 +19,7 @@
appropriate \code{type}}
\item{...}{Other arguments passed on to
- \code{\link{continuous_scale}} to control name, limits,
+ \code{\link{discrete_scale}} to control name, limits,
breaks, labels and so forth.}
}
\description{
View
2 man/scale_gradient.Rd
@@ -27,7 +27,7 @@
}
\arguments{
\item{...}{Other arguments passed on to
- \code{\link{continuous_scale}} to control name, limits,
+ \code{\link{discrete_scale}} to control name, limits,
breaks, labels and so forth.}
\item{na.value}{Colour to use for missing values}
View
2 man/scale_gradient2.Rd
@@ -21,7 +21,7 @@
diverging scale. Defaults to 0.}
\item{...}{Other arguments passed on to
- \code{\link{continuous_scale}} to control name, limits,
+ \code{\link{discrete_scale}} to control name, limits,
breaks, labels and so forth.}
\item{na.value}{Colour to use for missing values}
View
2 man/scale_gradientn.Rd
@@ -23,7 +23,7 @@
"Lab" usually best unless gradient goes through white.}
\item{...}{Other arguments passed on to
- \code{\link{continuous_scale}} to control name, limits,
+ \code{\link{discrete_scale}} to control name, limits,
breaks, labels and so forth.}
\item{na.value}{Colour to use for missing values}
View
2 man/scale_grey.Rd
@@ -19,7 +19,7 @@
\item{end}{gray value at high end of palette}
\item{...}{Other arguments passed on to
- \code{\link{continuous_scale}} to control name, limits,
+ \code{\link{discrete_scale}} to control name, limits,
breaks, labels and so forth.}
\item{na.value}{Colour to use for missing values}
View
2 man/scale_hue.Rd
@@ -33,7 +33,7 @@
\item{na.value}{Colour to use for missing values}
\item{...}{Other arguments passed on to
- \code{\link{continuous_scale}} to control name, limits,
+ \code{\link{discrete_scale}} to control name, limits,
breaks, labels and so forth.}
\item{h}{range of hues to use, in [0, 360]}

0 comments on commit e07a270

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