I have data on the catch rate of certain species of fish.
fish 1 fish 2 fish 3
0.000 3.265 9.872
2.147 1.013 0.000
I have calculated the mean catch rate for each fish using:
a <- colMeans(df)
I have also calculated the standard error:
stdError <- (sapply(df,sd))/sqrt(length(df))
I have created a dotplot using:
dotplot(a, xlab="mean catch", ylab = "species",las =2,)
How do I add error bars to this plot? I would prefer not to use ggplot if possible. I am currently using the inbuilt functions in R but have access to Lattice.
Sorry for what is probably a basic question, I am entirely new to plots in R.
