[R] plotting box plots on same x

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri May 27 16:52:42 CEST 2005


BJ wrote:
> I am trying to construct a graph of 6 box plots of blood pressures. I 
> want them to be on a single set of axis and I want the SBP to be ontop 
> of the DBP. I have an array bp with the data in it and I tried


Folks, please invest 1 minute of time to rethink whether other people 
will understand your question!

What is "SBP", "DBP", and where are the "6" boxplots from?

> a[1,]<-c(145,60,147,62,140,57)

"a" must already be defined here, or we cannot replace a column!

> a[2,]<-c(160,75,160,74,160,70)
> a[3,]<-c(140,55,140,65,142,55)
> boxplot(data.frame(a), main = "Blood Pressures", at=c(1,1,2,2,3,3), 
> names=c("sit","","lie","","stand",""))
> 
> which is close to what I want, but it gives me a bunch of empty space at 
> the end. is there a better way to do this to avoid this?

Well, the first point is that you should write questions that you would 
understand yourself. In a next step you might find someone who is able 
to answer it ....

> As always, Thank You. ~Erithid

"As always"? Does not sound very enthusiastic ...


Uwe Ligges



> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html




More information about the R-help mailing list