[R] help: how to plot a circle on the scatter plot

From: wu sz <r.shengzhe_at_gmail.com>
Date: Wed 13 Jul 2005 - 11:48:06 EST


Hello,

I have a data set with 15 variables, and use "pairs" to plot the scatterplot of this data set. Then I want to plot some circles on the small pictures with high correlation(e.g. > 0.9).

First, I use "cor" to obtain the corresponding correlation matrix (x) for this scatterplot.

Second, use "seq(along = x)[x > 0.9]" to find the positions of the small pictures with 0.9 correlation, but "seq" can just find the sequence position row by row for the matrix, not a real position (like "rowNumber, colNumber"). Is any function for that?

Third, use "Symbols" to plot the circle on these small pictures, but seems it can't do that. Also, I don't know how to adjust the thickness and radius of the circle plotted by "Symbols".

Please give me some ideas!

Thank you,
Shengzhe



R-help@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 Received on Wed Jul 13 11:51:37 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:36 EST