plot_coin | R Documentation |
Plot result of flip_coin()
plot_coin( data, detailed = FALSE, fill = "white", fill_success = "gold", line_color = "black", line_size = 0.8 )
data |
result of flip_coin() |
detailed |
not supported at moment |
fill |
Fill color |
fill_success |
Fill color if result is a success |
line_color |
Color of Lines |
line_size |
Size of Lines |
ggplot-Object
library(magrittr) # plot one coin plot_coin() # plot multiple coin flips flip_coin(times = 3, rounds = 3) %>% plot_coin() # change coin design flip_coin(times = 3, rounds = 3) %>% plot_coin(fill_success = "red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.