[R] Put short string labels vertically near tick marks on bottom axis

David Winsemius dwinsemius at comcast.net
Wed May 14 08:08:42 CEST 2014


On May 13, 2014, at 9:19 PM, Hurr wrote:

> I got rid of the quotes error by using single apostrophe quotes in  
> notepad.
>
> horAxisLims=c(0,7200)
> verData 
> = 
> c 
> (1,365,809,1252,1753,2191,2922,3409,3896,4383,4819,5255,5691,6128,6564,7000 
> )
> #not fussy
> horData 
> = 
> c 
> (1,300,800,1200,1700,2100,2900,3400,3800,4300,4800,5200,5600,6100,6500,7000 
> )
> #not at tics
> horTicLocs 
> = 
> c 
> (1,365,809,1252,1753,2191,2922,3409,3896,4383,4819,5255,5691,6128,6564,7000 
> )
> horLabels 
> = 
> c 
> ('1Yr 
> ','1Da 
> ','10.8Hr 
> ','7Hr 
> ','5Hr 
> ','4Hr 
> ','3Hr 
> ','2.57Hr 
> ','2.25Hr 
> ','2Hr','1.82Hr','1.67Hr','1.54Hr','1.43Hr','1.34Hr','1.25Hr')
> plot(horData,verData,xaxt='n',xlim=horAxisLims)
> axis(1,tick=TRUE,at=horTicLocs,labels=horLabels)
>
> The plotrix error is still there.

You are requested to post the FULL TEXT of any error message. Please  
do read the Posting Guide, and I suspect this is not the first time  
you have been advised to do so. (I do not get any error message and as  
far as I can see there are no plotrix functions being called.  
Furthermore I get no error.)

> Hurr



-- 
David Winsemius, MD
Alameda, CA, USA



More information about the R-help mailing list