[R] how to plot additional function into pairwise scatterplots?
Michael Dondrup
michael.dondrup at cebitec.uni-bielefeld.de
Tue May 16 11:23:40 CEST 2006
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
More information about the R-help
mailing list