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! -- View this message in context: http://www.nabble.com/axis-and-tick-widths-decoupled-%28especially-in-rugs%21%29-tp17068508p17068508.html Sent from the R help mailing list archive at Nabble.com.
Duncan Murdoch
2008-May-05 19:35 UTC
[R] axis and tick widths decoupled (especially in rugs!)
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
Yasir Kaheil
2008-May-05 21:03 UTC
[R] axis and tick widths decoupled (especially in rugs!)
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.