Create risk airplane
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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 = "grey80",
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
)
|
risk_places |
Number of risk places, defaults to NULL. If given, takes precedence over ratio. |
fill |
A vector of colours. |
rows |
Number of rows, defaults to 33 (found in commercial airplans, and with 6 seats per rows it adds up to 198 seats in total). |
legend_position |
Defaults to "none". |
coord_ratio |
Numeric, defaults to 0.5, untested with anything else. Y/X ratio. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.