[R] adjusting R's graphics display

Faheem Mitha faheem at email.unc.edu
Sun Apr 1 05:18:50 CEST 2001

Dear People,

I have code that looks like this

 image(z = as.matrix(val1))
 image(z = as.matrix(val2))

where val1 and val2 are two data frames which are each square arrays of -1
and 1 of side n. The above code displays them as yellow and red squares in
a grid (presumably default colours; whoever made the R default colours
clearly likes red, orange, and yellow) corresponding to -1 and 1. The
graphics display, however, displays these squares in a slightly squashed
fashion along the y axis. I would like the display to be bigger in such a
way that the squares actually look like squares, ie. elongated a suitable
amount in the y direction. What would be nicest way to do this?

Thanks for your time.

                          Sincerely, Faheem Mitha.

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