50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

xkcd (version 0.0.3)

xkcdaxis: Plots the axis

Description

This function plots the axis.

Usage

xkcdaxis(xrange, yrange, ...)

Arguments

xrange
The range of X axe.
yrange
The range of Y axe.
...
Other arguments.

Value

  • A layer with the axis.

Details

It plots the axis of the graph.

Examples

Run this code
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