ggsave4doc: ggsave4doc

View source: R/mu_ggplots2_ext.R

ggsave4docR Documentation

ggsave4doc

Description

Wrapper around ggsave that has default values for parameters fitting for embedding plots into my documents

Usage

ggsave4doc(
  fn,
  plot = last_plot(),
  width = 192,
  height = 192,
  units = "mm",
  family = "Helvetica",
  dimPreset = NULL,
  useDingbats = FALSE,
  ...
)

Arguments

fn

file name

plot

see ?ggsave

width

see ?ggsave

height

see ?ggsave

units

see ?ggsave

family

see ?ggsave

dimPreset

presets for figure dimensions. Possible values are NULL (don't use a preset; default), "slide_nuc_wide_full" (full slide using Fabian's wide nucleosome template), "slide_nuc_wide_half" (half a slide using Fabian's wide nucleosome template) Overwrites width, height and units.

useDingbats

see ?ggsave

...

see ?ggsave

Value

result of ggsave command


demuellae/muRtools documentation built on Nov. 6, 2024, 9:44 a.m.