[R] x-axis in plots and interaction.plots

aolinto@bignet.com.br aolinto at bignet.com.br
Fri Nov 30 18:58:08 CET 2001


Hi,

Here goes two plot questions I could not solve by myself:

1) I have a data frame with X (factors) and Y data, ordered by Y values.
When I make plot(X,Y) x-axis is rearranged. How to keep the original order?

To keep the original order (and to have points plotted, instead of horizontal 
lines) I tried, for X= names of 8 species and Y= median length: 

> par(lab = c(8, 5, 7))
> plot(Median,xaxt="n")
> axis(side=1,labels=Species)

But I had row numbers and not species names at x-axis.

2) In an interaction plot x-axis labels are overlapped. How to specify a step 
or frequency to x-axis labels?

Here I tried to use xaxt="n" and axes=F and then replace the axis with axis(1, 
at=seq(0,100,10)) but I could not erase the x-axis labels.

Thanks in advance.

Antonio
Olinto

-----------------------------------------------------



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