Skip to contents

This function creates an XKCD theme, applying the 'xkcd' font if available.

Usage

theme_xkcd()

Value

A theme object.

Note

The "xkcd" font must be installed and registered with extrafont for the full effect. See the vignette vignette("xkcd-intro") for installation instructions.

Examples

if (FALSE) { # \dontrun{
# Assuming 'xkcd' font is installed and registered:
p <- ggplot(mtcars, aes(mpg, wt)) +
     geom_point() +
     theme_xkcd()
p
} # }