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:

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

    ReplyDelete
  2. Haha, I much prefer the R plots myself

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

    ReplyDelete