[R] Problems when plotting (related to RArcInfo)

Virgilio Gómez Rubio Virgilio.Gomez at uv.es
Thu Nov 14 18:48:59 CET 2002


I am using RArcInfo to create some maps but, once I have plotted the map
(using plotarc), I try to add new lines, but the fact is that they are
not plotted.

I have reviewing the code, and if I remove a line, everything works
fine, but I am not sure whether I should do that, because that line
restores the previous 'par' profile.

Here is a portion of the code (from plotarc.R):

                par.in <- par(no.readonly = TRUE)
#               on.exit(par(par.in))  <--- THIS IS THE LINE I MENTIONED

                plot.dim<-c(ymin-xmin, ymax-xmax)
                par(pin = min(par.in$pin)
                * par.in$fin / max(par.in$fin)
                * (plot.dim) / max(plot.dim))

I am not sure whether some 'read only' flag is set with that command.
can anyone help.

Thanks and best wishes,

             Virgilio Gómez Rubio

Dpto. Estadística e I. O. - Facultat de Matemàtiques
Avda. Vicent A. Estellés, 1 - 46100 Burjassot
Valencia - SPAIN


TLF: 00 34 96 386 43 62 - FAX: 00 34 96 398 35 99

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