Re: [R] Calculating & plotting a linear regression between two correlated variables

2012-01-23 Thread JulieV
Hi Josh, Thanks for your response ! Actually, I already tried to plot it with a "classical" regression and I know the relation is linear: dA = 0.765 * dCOM - 0.089 p(slope) < 0.0001 p(intercept) = 0.0003 The fact is that I can not use these results as my variables dA and dCOM are correlated

[R] Calculating & plotting a linear regression between two correlated variables

2012-01-22 Thread JulieV
Hi, I have a Community (COM) composed of 6 species: A, B, C, D, E & F. The density of my Community is thus (Eq.1): dCOM = dA + dB + dC + dE + dF I would like to calculate and plot a linear regression between the density of each of my species and the density of the whole community (illustrating how

[R] Storing graphics

2011-12-14 Thread JulieV
Dear R members, I would like to store 18 graphics at the end of a loop (as we do for data frames and arrays). For each iteration, I use the function x11() and I want to keep my graphs in a single window to re-use them later. Do you know a function for storing graphics ? Many thanks Julie -- Vi