[Rd] Disappearing x axis in plot.factor (PR#830)

tov@ece.cmu.edu tov@ece.cmu.edu
Tue, 30 Jan 2001 06:27:11 +0100 (MET)


Hi.

While there is an x-axis set up for:
> plot.factor(factor(1:3))

this axis is not present for
> plot.factor(factor(1:3), col="red")

which actually should just be the same as the first plot and call
barplot(table(.)), shouldn't it?  Where did the ticks and labels go?

Note that
> barplot (table(factor(1:3)), col="red")
has the x-axis.

Something funky is going on with axisnames or args in plot.factor that
I can't figure out.  The situation can be remedied with
> plot.factor(factor(1:3), col="red", axes=TRUE)

alas, why do you need "axes=TRUE"?

Regards,
  -tom



Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:

> Thomas Vogels <tov@ece.cmu.edu> writes:
> 
> 
> > Now the (actually not so) funny thing is that the labels for the
> > x-axis disappear when I specify colors for the bars.  (R 1.2.1, Linux)
> > Ok, maybe the other thing I'll have to catch up on is the docu...
> 
> The logic around "axisnames" in plot.factor looks not quite right.
> Could you file a bug report on this so that we dont forget?
> 
> barplot(table(factor(1:3)),col="green")
> plot(factor(1:3),col="green",axes=T)
> 
> both work, although the latter is clearly silly.


--please do not edit the information below--

Version:
 platform = i386-pc-linux-gnu
 arch = i386
 os = linux-gnu
 system = i386, linux-gnu
 status = 
 major = 1
 minor = 2.1
 year = 2001
 month = 01
 day = 15
 language = R

Search Path:
 .GlobalEnv, package:ctest, Autoloads, package:base



-- 
mailto:tov@ece.cmu.edu (Tom Vogels)   Tel: (412) 268-6638   FAX: -3204


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._