R-beta: Using par(tck=,xaxs=)

Steve Oncley oncley at stout.atd.ucar.edu
Thu Jan 8 23:21:30 CET 1998

I found that par(tck=xx) was ignored and par(xaxs="s") gave an error in
v0.61.  I've made the following quick hacks in the code to get these to
function.  Please let me know if I'm setting myself up for trouble and...
Thanks for R! ...Steve Oncley (oncley at ucar.edu)

A hack to get par(tck) to work:

src/graphics/graphics.c, line 192:
        GP->tck = -0.02;  /* Blue Book p.527 standard value */
src/main/plot.c, lines 462-463, replace by:
	/* this sets the tick length to the same fraction for x and y,
	   as opposed to the Blue Book definition of the same length */
        xtk = -GP->tck*(GP->plt[1] - GP->plt[0]);
        ytk = -GP->tck*(GP->plt[3] - GP->plt[2]);

Get par(xaxs="s",yaxs="s") to work:

src/graphics/graphics.c, line 826, [added after case 's']:
	/* this is too easy! */
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list