Create animated version with multiple scenarios
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | rv_create_airplane_animation(
risk_ratio = c(`Scenario A` = 0.01, `Scenario B` = 0.1, `Scenario C` = 0.3, `Scenario
D` = 0.7),
transition_length = 0.5,
state_length = 1,
risk_places = NULL,
risk_vector = NULL,
risk_names = NULL,
fill = c("coral1", "darkgoldenrod1", "darkseagreen1", "lightskyblue1"),
na_colour = "grey80",
rows = 33,
seats_per_row = 6,
title = NULL,
font_family = "sans",
font_family_seats = "mono",
legend_position = "none",
ncol = NULL,
nrow = NULL,
guides = NULL
)
|
risk_ratio |
|
transition_length |
|
state_length |
|
risk_places |
|
risk_vector |
|
risk_names |
|
fill |
|
na_colour |
|
rows |
|
title |
|
font_family |
|
font_family_seats |
|
legend_position |
|
ncol |
|
nrow |
|
guides |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.