Tuesday, December 10, 2013

plots of binomial distribution in basic R and ggplot2

Basic R: dbinom, p = 1/8, 1/4, 1/2, 3/4, 7/8, 1 to 8 trials



ggplot2: dbinom, p = 1/8, 1/4, 1/2, 3/4, 7/8, 1 to 8 trials



Basic R: dbinom p = .5, 10 to 100 trials


ggplot2: dbinom p = .5 10 to 100 trials


3 comments:

Languagehat said...

I don't understand any of this, but it's great to see you back!

Will G said...

Haha, I much prefer the R plots myself

Daryl said...

It looks like someone with ggplot2 has been reading Tufte. (I much prefer them to the R plots.)