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

Duncan Murdoch murdoch at stats.uwo.ca
Mon May 5 21:35:22 CEST 2008


On 5/5/2008 3:02 PM, 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?

I don't think so, other than rewriting the internal axis code.

Duncan Murdoch



More information about the R-help mailing list