[R] box around a barplot

Bill Simpson wsi at gcal.ac.uk
Tue May 15 09:48:04 CEST 2001


> is it possible to draw a box around the following barplot; 
> using "box=TRUE" won't work.
> ----------
> pc<-c(1,2,5,29,27)
> 
> barplot(pc,ylim=c(0,30),yaxs="r",xaxs="r",ylab="Anzahl"     
> ,names.arg=c("Mac","286er","386er","486er","Pentium I")     
> ,axisnames=T,col="gray")
> ----------
Then do:
box()

Bill

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list