Learn R Programming

dstack (version 0.2.1)

ggplot_handler: Handles 'ggplot2' Objects

Description

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

Usage

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.