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

View source: R/rv_arena.R

rv_create_arenaR Documentation

Create an arena with a given ratio of places highlighted

Description

Create an arena with a given ratio of places highlighted

Usage

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


rv_create_arena(ratio = 0.9)

rv_create_arena(ratio = 0.1)


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