xkcdaxis {xkcd} | R Documentation |
Plot the axis
Description
This function plots the axis
Usage
xkcdaxis(xrange, yrange, ...)
Arguments
xrange |
The range of the X axe. |
yrange |
The range of the Y axe. |
... |
Other arguments. |
Details
It plots the axis of the graph.
Value
A layer with the axis.
Examples
## Not run:
xrange <- range(mtcars$mpg)
yrange <- range(mtcars$wt)
p <- ggplot() +
geom_point(aes(mpg, wt), data=mtcars) +
xkcdaxis(xrange,yrange)
p
## End(Not run)
[Package xkcd version 0.0.6 Index]