Using the moderndive
package and the bowl data set comparing different presentation methods. Setting the boundary appears to change the location of the data distribution what am I missing for the function use?
vs <- bowl %>%
rep_sample_n(size = 50, reps = 10000) %>%
group_by(replicate) %>%
summarise(num_red = sum(color=="red")) %>%
mutate(prop_red = num_red/ 50) %>%
mutate(prop_white = 1 - prop_red)
c1 <-ggplot(vs, aes(x=prop_red)) +
geom_histogram(color = "white", binwidth = 0.025) + labs(title="c1")
c2 <-ggplot(vs, aes(x=prop_red)) +
geom_histogram(color = "white", binwidth = 0.025, boundary = 0.4)
grid.arrange(c1,c2,nrow = 1)