Maria,
Does rq() provide an R2? Anyway, have a look at ?text.
-Peter Ehlers
Lathouri, Maria wrote:
Hi
I would like to display the trendline and the R-square value in a xy scatter in
R. For example if I want to plot f vs g I add the trendline using the commands
below
library(quantreg)
plot(f,g)
abline(rq(g~f))
however I don't know how to display the R2 in the graph.
Thank you in advance.
Kind regards
Maria
[[alternative HTML version deleted]]
______________________________________________
R-help@r-project.org 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.
______________________________________________
R-help@r-project.org 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.