[R] how exactly does 'identify' work?
casperyc
casperyc at hotmail.co.uk
Wed Nov 17 01:03:05 CET 2010
Hi all,
#########################################
test=data.frame(x=1:26,y=-23.5+0.45*(1:26)+rnorm(26))
rownames(test)=LETTERS[1:26]
attach(test)
#test
test.lm=lm(y~x)
plot(test.lm,2)
identify(test.lm$res,,row.names(test))
# not working
plot(x,y)
identify(x,y,row.names(test))
# works fine
identify(y,,row.names(test))
# works fine
identify(x,,row.names(test))
# not working
identify(y,,y)
# works
identify(x,,y)
# not working
#####################################
My guess is that identify take the object 'x' ( the first argument ) is the
thing that on the y axis.
However, i have tried many many ways
trying to get the LETTERS to be identified in the QQ-plot (plot(test.lm,2))
it never works.....
I have even tried to extract the standardized residual using library(MASS),
the 'stdres' function, and put it as the first argument in identify,
still failed...
Is there any means to achieve this?
Thanks!
casper
--
View this message in context: http://r.789695.n4.nabble.com/how-exactly-does-identify-work-tp3045953p3045953.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list