[R] graphical parameters in plot

Angelo Canty canty at cicma.concordia.ca
Fri Jun 2 20:38:35 CEST 2000

I'm using plot to make a simple plot but I want to control where
the tick marks go on bot axes.  The graphical parameters xaxp and
yaxp seem to be ignored by the plot function so I tried setting them
op <- par(no.readonly=T)
par(xaxp=c(-2.4,-2.2,5), yaxp=c(-2500,10000,6))
but they are still ignored.

Next I tried to use the axis function as follows
op <- par(no.readonly=T)
par(xaxt="n", yaxt="n")
axis(2,seq(-2500,10000,length=6), cex.axis=0.9)
but no axis labels are plotted.

Moving par(op) before the calls to axis causes the first call to axis to
extend the x-axis to the edge of the screen and the second call results
in a 0 being placed at the bottom of the y-axis.  

Is this a bug or is it just that it's Friday afternoon?  In any case
can someone please help me out here.

I'm using the following verison of R
platform sparc-sun-solaris2.6
arch     sparc               
os       solaris2.6          
system   sparc, solaris2.6   
major    1                   
minor    0.0                 
year     2000                
month    February            
day      29                  
language R                   


**   Angelo J. Canty                              **
**   Dept of Mathematics and Statistics           **
**   Concordia University                         **
**   Montreal, Quebec.                            **
**                                                **
**   Tel :  +1-514-848-3244                       **
**   Fax :  +1-514-848-4511                       **
**   Email : canty at discrete.concordia.ca          **
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