xkcd-package: Plot ggplot graphics in a XKCD style

Description Details Author(s) References See Also Examples

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.

Details

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.

Author(s)

Emilio Torres Manzanera

Maintainer: Emilio Torres Manzanera <torres@uniovi.es>

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

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

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, 4:47 p.m.