Label

Books (1) CARTO (3) Fun (21) GBDX (1) geoserver (1) GIS (57) greed (4) memo (4) movie (1) music (2) python (4) R (12) statistics (10) study (20) swim (5) tools (19) Ubuntu (7)

2013/02/06

【R】boxplot with sample size

use boxplot.n library in gplots.
usage:
 library(gplots)
 data1<- your dataset1
 data2<- your dataset2
 boxplot.n(data1,data2,top=TRUE,names=c("left","right"))


*top=FALSE : the sample size will appear at the bottom

output: