Learn R Programming

xkcd (version 0.0.3)

xkcd-package: Plot ggplot graphics in a XKCD style

Description

XKCD is a webcomic of romance, sarcasm, math, and language created by Randall Munroe. This package tries to give a satisfactory answer to the question How can we make xkcd style graphs in R?. The package provides a set of ggplot2 functions for plotting data in a XKCD style.

Arguments

Details

ll{ Package: xkcd Type: Package Version: 0.0.1 Date: 2013-04-27 License: GPL3 } This package introduces three main functions: xkcdman, xkcdline and xkcdrect. The xkcdman function creates a XKCD man and the other one plot pseudo handwritten objects. These functions are derived from the geom_path of the package ggplot2. All the funcionalities of the ggplot system can be used. See the vignettes for detailed examples.

References

Hadley Wickham 2012. ggplot2 http://ggplot2.org/ Randall Munroe. A webcomic of romance, sarcasm, math, and language http://xkcd.com/

Various Authors 2012. How can we make xkcd style graphs in R? http://stackoverflow.com/questions/12675147/how-can-we-make-xkcd-style-graphs-in-r

See Also

geom_path

Examples

Run this code
p <- ggplot() + geom_point(aes(mpg, wt), data=mtcars) + theme_xkcd()

Run the code above in your browser using DataLab