Converts output to an image object in standard formats.
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")
#> # A tibble: 1 × 7
#> format width height colorspace matte filesize density
#> <chr> <int> <int> <chr> <lgl> <int> <chr>
#> 1 PNG 1024 518 sRGB TRUE 0 96x96
#> # A tibble: 0 × 7
#> # ℹ 7 variables: format <chr>, width <int>, height <int>, colorspace <chr>,
#> # matte <lgl>, filesize <int>, density <chr>