pdf_default: Graphics Option: PDF Articles, Default Option

View source: R/plots.R

pdf_defaultR Documentation

Graphics Option: PDF Articles, Default Option

Description

This function implements my *personal* favorite setup for article pdfs. This does not currenty contain details on colors. Note that the CM Roman font will not show immediately when called in the Rstudio plot pane, but will be correctly input in the resulting pdf file.

Usage

pdf_default(p, CMRoman = NULL)

Arguments

p

The input ggplot2 object

CMRoman

Font for the graphics. Default is CM Roman.

Examples

library(ggplot2)
p <- ggplot(diamonds, aes(depth, colour = cut)) +
  geom_density()
pdf_default(p)

sysilviakim/Kmisc documentation built on Jan. 28, 2023, 10:58 a.m.