Hello,
Try the following.
lmR <- lm(cd$Depth ~ cd$CHAOsep12RNA)
pconfR <- predict(lmR,interval="confidence")
pcR <- pconfR[order(pconfR[, 1]), ] # Add this line
plot(cd$CHAOsep12RNA,cd$Depth, ylim = rev(range(0:100)), xlab="CHAO",
ylab="Depth", pch=15, las=2, main="Sep12-RNA", cex.main=1)
a
On 2013-05-17 06:03, Ozgul Inceoglu wrote:
Dear All,
When I plot the values and linear regression line for one data set, it is fine.
But for another one I see zigzags, when I plot the confidence interval
cd
Depth CHAOsep12RNA
9,94804
25,06 1476,83
40,04 1540,561404
50,11 1575
Dear All,
When I plot the values and linear regression line for one data set, it is fine.
But for another one I see zigzags, when I plot the confidence interval
>cd
Depth CHAOsep12RNA
9,94804
25,06 1476,83
40,04 1540,561404
50,11 1575,17
52,46 349,22
54,92 1941,5
57,2
3 matches
Mail list logo