[R] box around a barplot

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue May 15 09:45:40 CEST 2001


"Bernd Weiss" <bernd.weiss at epost.de> writes:

> Hi,
> 
> 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")
> ----------

Have you tried box() ?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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