Skip to content
Permalink
0a28308557
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
13 lines (12 sloc) 275 Bytes
# Simulation of 12-sided dice rolls
set.seed(123)
n = 120
rolls = rdunif(n,1,12)
summary(rolls)
table(rolls)
library(tidyverse)
mydata = tibble(rolls)
ggplot(mydata,mapping=aes(x=rolls)) +
geom_bar() +
ggtitle("Frequencies of rolls of a 12-sided dice:") +
coord_flip()