Create an arena with a given ratio of places highlighted
rv_create_arena( ratio, title = NULL, subtitle = NULL, caption = NULL, bg = "white", quality = "low", ggplot = FALSE )
ratio | Numeric, between 0 and 1, required. Share of seats to colour. |
---|---|
bg | Character vector of lenght 1, defines the background colour of the plot. Defaults to "white". |
ggplot | Logical, defaults to FALSE. If TRUE, returns a `ggplot` object. If FALSE, a `magick` object. |
rv_create_arena(ratio = 0.9)#> # A tibble: 1 x 7 #> format width height colorspace matte filesize density #> <chr> <int> <int> <chr> <lgl> <int> <chr> #> 1 PNG 1024 518 sRGB TRUE 0 96x96rv_create_arena(ratio = 0.1)#> # A tibble: 1 x 7 #> format width height colorspace matte filesize density #> <chr> <int> <int> <chr> <lgl> <int> <chr> #> 1 PNG 1024 518 sRGB TRUE 0 96x96