This works
for (i in 1:50) {
plot(1,i)
}
This does not work, why? it is binwidth I want to have changing
d <- diamonds
for (i in 1:50 by=10) {
ggplot(aes(x = d$price), data = d) + geom_histogram(color = 'black', fill = '#099DD1', binwidth = i)
}