scatterplot
abundance = data.frame(lncount = c(13, 865, 1800), lnedna = c(4.72, 5.05, 5.22, 5.24,
5.36, 5.71, 5.63, 5.97,
6.08, 6.20, 6.43, 6.54))
xyplot(lnedna ~ lncount, data = abundance,
xlab = "Mussel Count by Snorkel Survey",
ylab = "eDNA concentraion (gene sequence/Liter) on log scale",
main = "Mussel Abundance")
Add fit lines
abline(lm(lnedna ~ lncount))
This is the error I keep getting when trying to add the regression line: Error in eval(expr, envir, enclos) : object 'lnedna' not found
lnedna is working fine for making the scatter plot, why is it not working to add the regression line?
lm
function:lm(lnedna ~ lncount, data=abundance)
- storagedxyplot()
? - InfiniteFlashplot()
? - InfiniteFlash