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
7
8
9
## 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)

Example output

Loading required package: ggplot2
Loading required package: extrafont
Registering fonts with R
Warning message:
In theme_xkcd() : Not xkcd fonts installed! See vignette("xkcd-intro")

xkcd documentation built on May 2, 2019, 9:43 a.m.