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

View source: R/rv_magick.R

rv_imgR Documentation

Converts output to an image object in standard formats.

Description

Converts output to an image object in standard formats.

Usage

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


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


EDJNet/riskviewer documentation built on Nov. 9, 2024, 4:10 p.m.