Which plotting function are you using ?

I think most of plotting can accept xaxt="n" which is the command to
supress the x-axis. If this works, at least you do not have to redefine
the function. Examples

 plot(1:10, xaxt="n")
 hist( rnorm(100), xaxt="n" )
 boxplot( rnorm(10), rnorm(10), rnorm(10), xaxt="n" )


Reading help("par") will also shows you that xaxp might be useful but I
have not managed to get this working. Maybe someone on the list can
explain why the following does not work :

plot(1:100, xaxp=c(x1=0,x2=100,n=20) )
par( xaxp=c(x1=0,x2=100,n=20) ); plot(1:100)


Regards, Adai


On Thu, 2005-02-24 at 10:08 +1100, fls wrote:
> While writing a function that includes placing grid lines at the same 
> position 
> as the axis ticks, I found that the axis* functions don't return anything. 
> Thus I have had to copy the appropriate function, removing the call to axis() 
> and adding a line to return the tick positions. Is there a more elegant way 
> to determine the tick positions on an axis? Thanks.
> 
> Jim
> 
> (normally [EMAIL PROTECTED] - my modem is toast)
> 
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to