png_default: Graphics Option: PNG Presentations, Default Option

View source: R/plots.R

png_defaultR Documentation

Graphics Option: PNG Presentations, Default Option

Description

This function implements my *personal* favorite setup for beamer pngs. This does not currenty contain details on colors.

Usage

png_default(
  p,
  font = NULL,
  legend.position = "bottom",
  legend.direction = "horizontal"
)

Arguments

p

The input ggplot2 object

font

Font for the graphics. Default is NULL.

legend.position

Legend position passed to ggplot2. Default is bottom.

legend.direction

Legend direction passed to ggplot. Default is horizontal.

Examples

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

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