[R] Odp: URGENT helo re-beggining with R
petr.pikal at precheza.cz
Mon Oct 26 09:07:59 CET 2009
not sure that i understand what you want but maybe something like this can
segments(df$x, df$y, df$x, df$y-resid(fit))
r-help-bounces at r-project.org napsal dne 22.10.2009 22:29:37:
> Hi all,
> I have re-begging to use R.
> I need to using a matrix Y and X with the first row been the name to get
> ols regression and to plot a two elements graph...on the top
> the scattergraph and the line representing the regressión....below the
> resids...at the same time I want to plot with small lines representing
> error or one desviation from the regressión.
> I attach a graph...to get better understood.
> Please if you writte me the code explain how to put names on both plots.
> MAny Thanks¡¡¡
> I saw a document explaining but I can´t find....
> Thanks in advance....
> Imagine you load on a directory (in example mydocuments) the data file
> that it is an xls or *.txt file.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help