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

Steve Oncley (oncley@stout.atd.ucar.edu)
Thu, 8 Jan 1998 15:21:30 -0700 (MST)

From: oncley@stout.atd.ucar.edu (Steve Oncley)
Message-Id: <199801082221.WAA10084@clover.atd.ucar.edu>
Subject: R-beta: Using par(tck=,xaxs=)
To: r-help@stat.math.ethz.ch
Date: Thu, 8 Jan 1998 15:21:30 -0700 (MST)

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@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@stat.math.ethz.ch