I am trying to connect the dots in my plot and tried geom_point()
+geom_line()
but it won't work.
The code below just has it for the points. Does anyone have any ideas why geom_line()
does not add any line?
DensityE = read.csv("DensityElk.csv", header = TRUE)
str(DensityE)
DensityE$Date <- factor(DensityE$Date, levels=
c("20-May","3-Jun",
"17-Jun","1-Jul","16-Jul",
"22-Jul", "15-Aug"), order=TRUE)
ggplot(data=DensityE, aes(Date,Density)) +
geom_point(aes(shape = factor(Genus)), size = 4,
position="jitter") +
theme_bw() + xlab("Date") +
ylab("Density per m2") + ggtitle("COP 1992") +
opts(legend.key = theme_blank()) +
opts (legend.title = theme_blank())+
opts(legend.text = theme_text(size=9))