Learn R Programming

xkcd (version 0.0.6)

xkcdaxis: 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.

Value

A layer with the axis.

Details

It plots the axis of the graph.

Examples

Run this code
# NOT RUN {
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