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

From: Yasir Kaheil <kaheil_at_gmail.com>
Date: Mon, 05 May 2008 14:03:43 -0700 (PDT)

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.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 05 May 2008 - 21:07:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 05 May 2008 - 22:30:36 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive