plot_dice | R Documentation |
Plot result of roll_dice()
plot_dice( data, detailed = FALSE, fill = "white", fill_success = "gold", point_color = "black", line_color = "black", line_size = 0.8 )
data |
result of roll_dice() |
detailed |
If TRUE, the dice is plotted with more details |
fill |
Fill color |
fill_success |
Fill color if result is a success |
point_color |
Color of Points |
line_color |
Color of Lines |
line_size |
Size of Lines |
ggplot-Object
library(magrittr) plot_dice() roll_dice(times = 3, rounds = 3) %>% plot_dice() roll_dice(times = 3, rounds = 3) %>% plot_dice(fill_success = "red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.