xkcdaxis: Plots the axis

Description Usage Arguments Details Value Examples

View source: R/xkcdaxis.r

Description

This function plots the axis.

Usage

1
xkcdaxis(xrange, yrange, ...)

Arguments

xrange

The range of X axe.

yrange

The range of 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
## 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: Ignoring unknown aesthetics: xbegin, ybegin, xend, yend
Warning: Ignoring unknown aesthetics: xbegin, ybegin, xend, yend
Warning message:
In theme_xkcd() : Not xkcd fonts installed! See vignette("xkcd-intro")

xkcd documentation built on May 2, 2019, 4:47 p.m.