As the doctor gone rogue

May 5, 2010

Boxplot with data points

Filed under: R — hypotheses @ 7:38 pm

postscript(file="figures/boxplot.ps")
boxplot(lncrp~rs1205_A,data=wm.black,names=c("GG","AG","AA"))
with(wmb,points(1+rs1205_A,lncrp,col="red",pch=16))
dev.off()
Advertisements

4 Comments »

  1. Those are some cool plots sir!

    Comment by Beverley — May 5, 2010 @ 7:55 pm

    • It’s not exactly what I have in mind, but it’s simple and close enough to trade-off my perfectionism.

      Comment by Bhoom — May 5, 2010 @ 8:07 pm

  2. is it possible to add the points next to the boxplots?

    Comment by Maggy Yan — May 12, 2013 @ 11:18 am

    • I guess you can do something like moving the points a bit to the right (e.g. adding 0.5 to X-axis) , and make the box thinner (may be there’s an option in “boxplot”?)

      Comment by hypotheses — May 12, 2013 @ 9:51 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: