Skip to contents

Usage

rv_create_airplane(
  risk_ratio = 0.1,
  risk_places = NULL,
  risk_vector = NULL,
  compact = FALSE,
  risk_names = "Risk",
  fill = c("coral1", "darkcyan", "darkgoldenrod1", "darkseagreen1", "lightskyblue1"),
  na_colour = "grey90",
  rows = 33,
  seats_per_row = 6,
  title = NULL,
  font_family = "sans",
  font_size = 20,
  font_family_seats = "mono",
  seat_size_ratio = 1,
  legend_position = "none",
  coord_ratio = 0.8
)

Arguments

risk_ratio

Fraction of places that are subject to risk. For example, if set to 0.1 (the default), 10

risk_placesNumber of risk places, defaults to NULL. If given, takes precedence over ratio.

fillA vector of colours.

rowsNumber of rows, defaults to 33 (found in commercial airplanes, and with 6 seats per rows it adds up to 198 seats in total).

legend_positionDefaults to "none".

coord_ratioNumeric, defaults to 0.8, untested with anything else. Y/X ratio.

Create risk airplane