Skip to content
Prev 785 / 398502 Next

R-beta: mfg weirdness

I just checked my S manual and it appears that layout parameters like
can "mfg" only be given in par().  I think that in fact "mfg" is only
meant to be queried.


Perhaps not unrelatedly ...

After some discussion with Paul Murrell I am inclined to think that
the whole graphics system needs a rewrite, even though this would
mean incompatibility with S.  A major problem is that the whole "par"
system does not work when devices can be resized.  Consider the
following series of steps:

	x11()
	opar <- par()		# save parameters

	# manually resize window

	par(opar)		# restore saved parameters

Before the resize, "fig" and "fin" are compatible, but after the resize
they are not.  So which should be used to determine the plot layout?

[ Splus seems to get around this by not changing the nominal plot size
when the graphics window is resized.  (Check the value of "din", "fin",
etc. before and after a resize)]

In Paul's work on maintaining display lists, he keeps track of the
units which a user used to set up a plot (was it "fin" or "fig"?)
and recomputes plot layouts using this unit information.

In interpreted code the saving and restoring of the graphics state is
done with

	opar <- par()

	...

	par(opar)

This can't work when window resizing is allowed.

Does anyone have any thoughts about how important it is to retain
compatibility with the S way of doing things?

	Ross
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._