[R] Retrieve part of (top right corner) of a "plot.data.frame" plot?

From: Dan Bolser <dan.bolser.r_at_googlemail.com>
Date: Wed, 20 Jun 2007 11:20:44 +0200


I believe this question has been asked before, but I cant find and don't remember the answer.

The problem is simple, calling 'plot.data.frame(x)' gives a nice 'matrix of scatterplots' for each pair of columns in x. for example;

x <-



gives a 6 by 6 grid of scatter plots, two (upper right and lower left) for each pair of columns in x. (I am going over these basics so that you can understand what I mean next).

I would like to see just part of the above result, namely the nine plots in the top right of the given plot, or;

a vs. d | a vs. e | a vs. f
b vs. d | b vs. e | b vs. f
c vs. d | c vs. e | c vs. f

I tried a number of ways to do this, but I can't find either the right formula or the right function to get what I want.

Any suggestions you can give (especially any not involving the source code of 'pairs') are most welcome.


        [[alternative HTML version deleted]]

R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 20 Jun 2007 - 09:36:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 20 Jun 2007 - 22:32:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.