ggsave600dpi: Extract a legend...

ggsave600dpiR Documentation

Extract a legend https://stackoverflow.com/questions/43366616/ggplot2-legend-only-in-a-plot Alternate unused approach From https://github.com/tidyverse/ggplot2/wiki/Share-a-legend-between-two-ggplot2-graphs

Description

Extract a legend https://stackoverflow.com/questions/43366616/ggplot2-legend-only-in-a-plot Alternate unused approach From https://github.com/tidyverse/ggplot2/wiki/Share-a-legend-between-two-ggplot2-graphs

Usage

ggsave600dpi(
  filename,
  gg,
  width,
  height,
  units = "in",
  size = 12,
  lineheight = 0.13,
  caption_fraction = 10/12,
  path = NA,
  second_path = NA,
  ...
)

Arguments

filename

Output file

gg

A ggplot

width

Output height as per ggsave

height

Output height as per ggsave

units

Output measurement unit as per ggsave

size

New text size

caption_fraction

Ratio of caption to the rest of text

path

for output, defaults to NA for legacy reasons

second_path

for output, typically to save to sharepoint

Value

Does not return, outptus to file


CSISdefense/csis360 documentation built on April 29, 2024, 5:30 p.m.