xkcdaxis: Plot the axis

Description Usage Arguments Details Value Examples

Description

This function plots the axis

Usage

1
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

1
2
3
4
5
6
xrange <- range(mtcars$mpg)
yrange <- range(mtcars$wt)
p <- ggplot() +
     geom_point(aes(mpg, wt), data=mtcars) +
     xkcdaxis(xrange,yrange)
p

EDiLD/xkcd2 documentation built on May 6, 2019, 3:06 p.m.