plot_single_dice {tidydice} | R Documentation |
Draw a single dice
Description
Draw a single dice
Usage
plot_single_dice(
ggplot = NULL,
result = 6,
x = 0,
y = 0,
width = 0.9,
fill = "white",
detailed = FALSE,
rounding = width/5,
line_size = 0.8,
line_color = "black",
point_size = width/6,
point_color = "black"
)
Arguments
ggplot |
ggplot-Object. If passed, the dice will be added to plot |
result |
Result of dice rolling (0..6) |
x |
X-coordinate of dice (center) |
y |
y-coordinate of dice (center) |
width |
Width of dice |
fill |
Fill color |
detailed |
If TRUE, the dice is plotted with more details |
rounding |
Rounding of dice (only used if detailed == TRUE) |
line_size |
Size of Lines |
line_color |
Color of Lines |
point_size |
Size of Points |
point_color |
Color of Points |
Value
ggplot-Object
[Package tidydice version 1.0.0 Index]