ggsave_for_docs: Plot save function

Description Usage Arguments Examples

View source: R/ggiteam.R

Description

This function will display and save a ggplot figure.

Usage

1
2
ggsave_for_docs(fig, plot.dir, plot.name, height, width, save.fig,
  save.format)

Arguments

fig

ggplot object

plot.dir

string, name of directory for output file

plot.name

string, desired name for plot file

height

numeric, height of plot in inches

width

numeric, width of plot in in inches

save.fig

logical, whether plot figure will be saved or not

save.format

string, "svg", "png", "emf"

Examples

1
2
3
4
5
6
7
ggsave_for_docs(fig = my_plot,
 plot.dir = "plot_directory/",
 plot.name = "my_plot",
 height = 4,
 width = 6,
 save.fig = T,
 save.format = "png")

city-of-baltimore/ggiteam documentation built on April 30, 2021, 8:32 p.m.