plot_dice: Plot result of roll_dice()

View source: R/dice-plot.R

plot_diceR Documentation

Plot result of roll_dice()

Description

Plot result of roll_dice()

Usage

plot_dice(
  data,
  detailed = FALSE,
  fill = "white",
  fill_success = "gold",
  point_color = "black",
  line_color = "black",
  line_size = 0.8
)

Arguments

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

Value

ggplot-Object

Examples

library(magrittr)  
plot_dice()
roll_dice(times = 3, rounds = 3) %>% plot_dice()
roll_dice(times = 3, rounds = 3) %>% plot_dice(fill_success = "red")

tidydice documentation built on Feb. 16, 2023, 7:50 p.m.