I have data on the catch rate of some species of fish.
fish 1 fish 2 fish 3 0.000 3.265 9.872 2.147 1.013 0.000
I calculated the average catch rate for each fish using:
a <- colMeans(df)
I also calculated the standard error:
stdError <- (sapply(df,sd))/sqrt(length(df))
I created dotplot using:
dotplot(a, xlab="mean catch", ylab = "species",las =2,)
How to add error lines to this graph? I would prefer not to use ggplot if possible. I am currently using built-in functions in R, but have access to Lattice.
Sorry for what is probably the main question, I'm brand new to the graphs in R.
r
user3489562
source share