dev.print scaling bug? (PR#229)

About this list Date view Thread view Subject view Author view Other groups

Subject: dev.print scaling bug? (PR#229)
John.Peters@tip.csiro.au
Date: Fri 16 Jul 1999 - 12:09:33 EST


Message-Id: <199907160209.EAA10314@pubhealth.ku.dk>

# demo of bug in dev.print()
# (trivial, but detracts from Rolls Royce feel of R and forces workarounds)
# seen in rw0642 and linux version of 0.64.1

# Verbal attempt at generalising the behaviour illustrated by this file:

# If "par(mfrow)" is used to set more than 2 graphs vertically or
# horizontally on the page, then, in the file generated by "dev.print()",
# the default size of the graph points created by "points()" differs from
# the size created by "plot()", although it does not differ on the
# screen display.

a_1:10
b_c(2:10,NA)

opar_par(mfrow=c(1,3)) # set up page for 1x3 graphs, bug
#opar_par(mfrow=c(3,1)) # set up page for 3x1 graphs, bug
#opar_par(mfrow=c(2,1)) # set up page for 2x1 graphs, OK

plot(a,a)
points(a,b)

plot(a,b)
points(a,a)

plot(a,a)
points(a,b)

par(opar)

dev.print(file="printdev.ps")

# gv or print "printdev.ps"

----------------------------------------------------------------------------

Thanks for R

John Peters
CSIRO National Measurement Laboratory
PO Box 218 Phone: +61 2 9413 7503
Lindfield NSW 2070 Fax: +61 2 9413 7202
Australia Internet: John.Peters@tip.CSIRO.AU
----------------------------------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:06 EST