Learn R Programming

eeptools (version 0.2)

theme_dpi: a ggplot2 theme developed for PDF and PNG

Description

This is a custom ggplot2 theme developed for the Wisconsin Department of Public Instruction

Usage

theme_dpi(base_size = 16, base_family = "")

Arguments

base_size
specify the font size as a numeric value, this value is optional
base_family
specify the font family, this value is optional

Value

  • A theme object which is a list of attributes applied to a ggplot2 object.

Details

All values are optional

References

For more information see https://github.com/hadley/ggplot2/wiki/Themes

See Also

This uses unit from the gridExtra package extensively. See also theme_bw from the ggplot2 package.

Examples

Run this code
qplot(mpg, wt, data=mtcars) # standard
qplot(mpg, wt, data=mtcars) + theme_dpi()

Run the code above in your browser using DataLab