Skip to content

Commit

Permalink
Re-roxygenise
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Apr 11, 2012
1 parent 4e44907 commit e07a270
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions man/coord_fixed.Rd
Expand Up @@ -33,9 +33,9 @@
# ensures that the ranges of axes are equal to the specified ratio by # ensures that the ranges of axes are equal to the specified ratio by
# adjusting the plot aspect ratio # adjusting the plot aspect ratio


qplot(mpg, wt, data = mtcars) + coord_equal(ratio = 1) qplot(mpg, wt, data = mtcars) + coord_fixed(ratio = 1)
qplot(mpg, wt, data = mtcars) + coord_equal(ratio = 5) qplot(mpg, wt, data = mtcars) + coord_fixed(ratio = 5)
qplot(mpg, wt, data = mtcars) + coord_equal(ratio = 1/5) qplot(mpg, wt, data = mtcars) + coord_fixed(ratio = 1/5)


# Resize the plot to see that the specified aspect ratio is maintained # Resize the plot to see that the specified aspect ratio is maintained
} }
Expand Down
4 changes: 2 additions & 2 deletions man/geom_text.Rd
Expand Up @@ -60,7 +60,7 @@ p + geom_text(aes(label = paste(wt, "^(", cyl, ")", sep = "")),


# Add an annotation not from a variable source # Add an annotation not from a variable source
c <- ggplot(mtcars, aes(wt, mpg)) + geom_point() 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 # Or, you can use annotate
c + annotate("text", label = "plot mpg vs. wt", x = 2, y = 15, size = 8, colour = "red") c + annotate("text", label = "plot mpg vs. wt", x = 2, y = 15, size = 8, colour = "red")


Expand All @@ -70,7 +70,7 @@ qplot(wt, mpg, data = mtcars, label = rownames(mtcars),
qplot(wt, mpg, data = mtcars, label = rownames(mtcars), size = wt) + qplot(wt, mpg, data = mtcars, label = rownames(mtcars), size = wt) +
geom_text(colour = "red") 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 <- ggplot(mtcars, aes(x=wt, y=mpg, label=rownames(mtcars)))
p + geom_text(fontface=3) p + geom_text(fontface=3)
p + geom_text(aes(fontface=am+1)) p + geom_text(aes(fontface=am+1))
Expand Down
2 changes: 1 addition & 1 deletion man/scale_brewer.Rd
Expand Up @@ -19,7 +19,7 @@
appropriate \code{type}} appropriate \code{type}}


\item{...}{Other arguments passed on to \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.} breaks, labels and so forth.}
} }
\description{ \description{
Expand Down
2 changes: 1 addition & 1 deletion man/scale_gradient.Rd
Expand Up @@ -27,7 +27,7 @@
} }
\arguments{ \arguments{
\item{...}{Other arguments passed on to \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.} breaks, labels and so forth.}


\item{na.value}{Colour to use for missing values} \item{na.value}{Colour to use for missing values}
Expand Down
2 changes: 1 addition & 1 deletion man/scale_gradient2.Rd
Expand Up @@ -21,7 +21,7 @@
diverging scale. Defaults to 0.} diverging scale. Defaults to 0.}


\item{...}{Other arguments passed on to \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.} breaks, labels and so forth.}


\item{na.value}{Colour to use for missing values} \item{na.value}{Colour to use for missing values}
Expand Down
2 changes: 1 addition & 1 deletion man/scale_gradientn.Rd
Expand Up @@ -23,7 +23,7 @@
"Lab" usually best unless gradient goes through white.} "Lab" usually best unless gradient goes through white.}


\item{...}{Other arguments passed on to \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.} breaks, labels and so forth.}


\item{na.value}{Colour to use for missing values} \item{na.value}{Colour to use for missing values}
Expand Down
2 changes: 1 addition & 1 deletion man/scale_grey.Rd
Expand Up @@ -19,7 +19,7 @@
\item{end}{gray value at high end of palette} \item{end}{gray value at high end of palette}


\item{...}{Other arguments passed on to \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.} breaks, labels and so forth.}


\item{na.value}{Colour to use for missing values} \item{na.value}{Colour to use for missing values}
Expand Down
2 changes: 1 addition & 1 deletion man/scale_hue.Rd
Expand Up @@ -33,7 +33,7 @@
\item{na.value}{Colour to use for missing values} \item{na.value}{Colour to use for missing values}


\item{...}{Other arguments passed on to \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.} breaks, labels and so forth.}


\item{h}{range of hues to use, in [0, 360]} \item{h}{range of hues to use, in [0, 360]}
Expand Down

0 comments on commit e07a270

Please sign in to comment.