[R] box around a barplot

Ko-Kang@xtra.co.nz Ko-Kang at xtra.co.nz
Tue May 15 10:22:08 CEST 2001


At the end of your code type:
box()

So you'd have:
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")
box()



Cheers,

Kevin

----------------------------------------------------------------
Ko-Kang Kevin Wang
Statistical Analysis Division Leader
Software Developers' Klub
University of Auckland
New Zealand
----- Original Message -----
From: "Bernd Weiss" <bernd.weiss at epost.de>
To: <r-help at lists.R-project.org>
Sent: Tuesday, May 15, 2001 5:20 PM
Subject: [R] box around a barplot


> 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")
> ----------
>
> Thanks in advance
>
> Bernd
>
>
> --
> Bernd Weiß (bernd.weiss at epost.de)
> PGP Key ID: 0x4117206F
> PGP FP: 08B2 09CD 7192 526D 93FD  2070 53DB 7C4F 4117 206F
> www.pgpi.org
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-.-
> 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
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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