xkcdaxis: Plot the axis

View source: R/xkcdaxis.R

xkcdaxisR Documentation

Plot the axis

Description

This function plots the axis in an XKCD style.

Usage

xkcdaxis(xrange, yrange, ...)

Arguments

xrange

The range of the X axe.

yrange

The range of the Y axe.

...

Other arguments passed to geom_xkcdpath.

Value

A list of layers containing the axes, coordinate system, and theme.

Examples

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

xkcd documentation built on Nov. 20, 2025, 1:07 a.m.