Description Details Author(s) References See Also Examples
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.
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.
Emilio Torres Manzanera
Maintainer: Emilio Torres Manzanera <torres@uniovi.es>
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
1 | p <- ggplot() + geom_point(aes(mpg, wt), data=mtcars) + theme_xkcd()
|
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.