rv_img: Converts output to an image object in standard formats.

Description Usage Arguments Examples

View source: R/rv_magick.R

Description

Converts output to an image object in standard formats.

Usage

1
rv_img(plot, quality = "low", bg = "white", stack = FALSE)

Arguments

plot

A plot, typically generated with e.g. 'rv_create_arena()'

quality

One of either "low" (output 1024px width), "medium" (output 1512px width), or "high" (output 2048px width). Defaults to "low".

bg

Background colour.

stack

Logical, defaults to FALSE. If TRUE, graphs are placed left-to-right, if FALSE top-to-bottom.

Examples

1
2
plot <- rv_create_arena(ratio = 0.7)
rv_img(plot, quality = "medium")

EDJNet/riskviewer documentation built on Dec. 17, 2021, 5:37 p.m.