[R] axis and tick widths decoupled (especially in rugs!)

Yasir Kaheil kaheil at gmail.com
Mon May 5 23:03:43 CEST 2008



Hi
This is an ad-hoc fix.. 
d<-rnorm(4)
plot(1:4,d)
g<-3;
rug((1:4),ticksize=-.03,lwd=g,side=1)
rug((1:4),ticksize=0,lwd=(g-1),side=1,col="white")

just drawing another white axis on top of the old one.. it looks ok :)

y



maiya wrote:
> 
> Hi!
> 
> (a complete newby, but will not give up easily!)
> 
> I was wondering if there is any way to decouple the axis and tick mark
> widths? As I understand they are both controlled by the lwd setting, and
> cannot be controlled independently? For example I might want to create
> major and minor ticks, which I now know how to do by superimposing two
> axes with different at settings, but what if I also wanted the major ticks
> to be thicker? or a different colour?
> You might find this nitpicking, but I am particularly concerned about
> rug(), which passes to axis(), in that I cannot get a decent thick-lined
> rug, without the horizontal line also becoming equally thick. 
> Is there any way to do this without having to resort to segments?
> 
> Tnx!
> 


-----
Yasir H. Kaheil, Ph.D.
Catchment Research Facility
The University of Western Ontario 

-- 
View this message in context: http://www.nabble.com/axis-and-tick-widths-decoupled-%28especially-in-rugs%21%29-tp17068508p17070684.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list