powered by
This function plots the axis in an XKCD style.
xkcdaxis(xrange, yrange, ...)
A list of layers containing the axes, coordinate system, and theme.
The range of the X axe.
The range of the Y axe.
Other arguments passed to geom_xkcdpath.
if (FALSE) { xrange <- range(mtcars$mpg) yrange <- range(mtcars$wt) p <- ggplot() + geom_point(aes(mpg, wt), data=mtcars) + xkcdaxis(xrange,yrange) p }
Run the code above in your browser using DataLab