[R] Overlay plot: boxplot and stripchart

2009-03-13 Thread Aldi Kraja
Hi, I have a data.frame of this kind: x obs movie earned rating 1P1 3.2xx 2P1 4.2xx 3P1 5.2xx 4P1 6.2xx 5P2 3.5xx 6P2 6.5xx 7P2 7.5xx 8P2 4.5xx 9P2 4.5xx 10 P3

Re: [R] Overlay plot: boxplot and stripchart

2009-03-13 Thread David Winsemius
It seems almost too simple. Check to see if stripchart has an add= or other argument that lets you overlay charts. It does, so try this: boxplot(x$earned ~ x$movie) stripchart(x$earned ~ x$movie, vertical=T,data=x, method=jitter, add=TRUE, pch=19) -- David Winsemius On Mar 13, 2009, at