Learn R Programming

xkcd (version 0.1.0)

theme_xkcd: Creates an XKCD theme

Description

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

Usage

theme_xkcd()

Arguments

Value

A theme object.

Examples

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

Run the code above in your browser using DataLab