[R] reverse orientation of text in plot margins

Patrick Connolly p_connolly at slingshot.co.nz
Wed Aug 13 22:23:23 CEST 2008


On Wed, 13-Aug-2008 at 06:32PM +0200, Karel Van den Meersche wrote:

|> 
|> Dear R users,
|> 

|> I am trying to reverse the orientation of axis labels and title in
|> the right margin of a plot, so that they read from top to bottom. I
|> know that this can be done using text() as follows:

|> par(mar=c(5,4,4,4)+.1)
|> plot(1:4,las=0)
|> par(new=T)
|> y <- rnorm(4)
|> plot(y,axes=FALSE,ann=FALSE,pch=17)
|> axis(4,labels=FALSE)

I think it would be easiest to work out values for at and labels in
this statement.  ?axis.

HTH

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___    Patrick Connolly   
 {~._.~}          		 Great minds discuss ideas    
 _( Y )_  	  	        Middle minds discuss events 
(:_~*~_:) 	       		 Small minds discuss people  
 (_)-(_)  	                           ..... Anon
	  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.



More information about the R-help mailing list