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