Harald Stepputtis
2006-May-16 08:46 UTC
[R] how to plot additional function into pairwise scatterplots?
Hello, I am new to R and want to use it for some statistical tests. Before the tests, I want to visualize my data with pairwise scatterplots using "pairs(myData)". To analyse it by eye, I would like to draw the function f(x)=y into each of the scatterplot panels. Unfortunately I get lost when I try to figure it out by reading "help(pairs)". Can anyone help me or point me to a nice tutorial about graphics? Regards, Harald -- Harald Stepputtis University of Freiburg, Plant Biotechnology Sch?nzlestr. 1, D-79104 Freiburg Fon: +49 761 203-6960 Fax: +49 761 203-6990 e-mail: Harald.Stepputtis at biologie.uni-freiburg.de homepage: http://www.plant-biotech.net/
Michael Dondrup
2006-May-16 09:23 UTC
[R] how to plot additional function into pairwise scatterplots?
Harald, for your specific problem (add main diagonal) for example:> abline.points <- function (x,y,...) { points(x, y, ...); abline(0,1) } > pairs(USJudgeRatings[1:5], panel = abline.points, cex = 1.5 )example(pairs) has nicer examples. Regards Michael Am Tuesday 16 May 2006 10:46 schrieb Harald Stepputtis:> Hello, > > I am new to R and want to use it for some statistical tests. Before the > tests, I want to visualize my data with pairwise scatterplots using > "pairs(myData)". To analyse it by eye, I would like to draw the function > f(x)=y into each of the scatterplot panels. Unfortunately I get lost > when I try to figure it out by reading "help(pairs)". > > Can anyone help me or point me to a nice tutorial about graphics? > > Regards, > Harald