plot_coin: Plot result of flip_coin()

View source: R/coin-plot.R

plot_coinR Documentation

Plot result of flip_coin()

Description

Plot result of flip_coin()

Usage

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

Arguments

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

Value

ggplot-Object

Examples

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")

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