Renaud Lancelot
2004-Jan-07 06:30 UTC
[R] length of tick marks in grid.xaxis and grid.yaxis
Dear all, How can I control the length of tick marks in grid.xaxis and grid.yaxis (package grid) ? Best regards, Renaud -- Dr Renaud Lancelot v?t?rinaire ?pid?miologiste Ambassade de France - SCAC BP 834 Antannarivo 101 Madagascar t?l. +261 (0)32 04 824 55 (cell) +261 (0)20 22 494 37 (home)
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).