[R] length of tick marks in grid.xaxis and grid.yaxis

M.Kondrin mkondrin at hppi.troitsk.ru
Thu Jan 8 20:49:57 CET 2004


Renaud Lancelot wrote:

> Dear all,
>
> How can I control the length of tick marks in grid.xaxis and 
> grid.yaxis (package grid) ?
>
> Best regards,
>
> Renaud
>
in grid tick marks are always drawn with length unit(1,"char") So the 
possible way to change tick length is set gp parameter of viewport, 
where the axis is drawn, like this viewport(...,gp=gpar(fontsize=24)) 
for larger ticks ot fontsize=6 for smaller (although it will of course 
change the size of all text annotations on this viweport, so the special 
care should be taken to override default gp in all text annotations).




More information about the R-help mailing list