| xkcdaxis | R Documentation |
This function plots the axis in an XKCD style.
xkcdaxis(xrange, yrange, ...)
xrange |
The range of the X axe. |
yrange |
The range of the Y axe. |
... |
Other arguments passed to geom_xkcdpath. |
A list of layers containing the axes, coordinate system, and theme.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.