ggplot_handler: Handles 'ggplot2' Objects

Description Usage Arguments Value

View source: R/ggplot.R

Description

Returns a function that converts 'ggplot2' plots to appropriate format and format itself. PNG and SVG are supported.

Usage

1
ggplot_handler(dpi = 300, width = NA, height = NA, format = "png")

Arguments

dpi

DPI, default is 300.

width

Image width.

height

Image height.

format

Image format to use, can be "png" or "svg", by default PNG will be used.

Value

A list which contains conversion function and format inself.


dstackai/dstack-r documentation built on Sept. 25, 2020, 10:12 p.m.