theme_xkcd: Creates an XKCD theme

View source: R/theme_xkcd.R

theme_xkcdR Documentation

Creates an XKCD theme

Description

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

## Not run: 
# Assuming 'xkcd' font is installed and registered:
p <- ggplot(mtcars, aes(mpg, wt)) +
     geom_point() +
     theme_xkcd()
p

## End(Not run)

xkcd documentation built on Nov. 20, 2025, 1:07 a.m.