rv_create_arena: Create an arena with a given ratio of places highlighted

Description Usage Arguments Examples

View source: R/rv_arena.R

Description

Create an arena with a given ratio of places highlighted

Usage

1
2
3
4
5
6
7
8
9
rv_create_arena(
  ratio,
  title = NULL,
  subtitle = NULL,
  caption = NULL,
  bg = "white",
  quality = "low",
  ggplot = FALSE
)

Arguments

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.

Examples

1
2
3
rv_create_arena(ratio = 0.9)

rv_create_arena(ratio = 0.1)

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