search for: shanthiboxplot

Displaying 1 result from an estimated 1 matches for "shanthiboxplot".

2013 Mar 21
2
Displaying median value over the horizontal(median)line in the boxplot
...? ? 89? ? ? 8? ? ? 8 #6? ? ? 6? ? ? 8? ? ? NA? ? ? 9? ? ? NA #7? ? ? 6? ? ? 8? ? ? NA? ? ? NA? ? ? NA #8? ? ? 7? ? ? NA? ? ? NA? ? ? NA? ? ? NA apply(dat1,2,median,na.rm=TRUE) #column1 column2 column3 column4 column5 #? ? 4.5? ? 6.0? ? 45.0? ? 7.0? ? 7.0 #to save it as a pdf pdf("Shanthiboxplot.pdf") par(mfrow=c(3,2)) lapply(dat1,function(x) {b<-boxplot(x,range=0,horizontal=TRUE);mtext(b$stats[3],side=3,at=b$stats[3],line=-8)}) dev.off() #to just print it on screen par(mfrow=c(3,2))# you can change this according to your need lapply(dat1,function(x) {b<-boxplot(x,range=0,horiz...