I was trying to create a scatter graph of two fish I've tracked showing them at different depths over time. I've tried to subset them out of the main data frame but the graph only shows one.
p1 <- ggplot(subset(Data.df,ID %in% c(Data.df$ID == "9" , "11")))
p1 <- p1 + geom_point(aes(dt, d, colour=as.factor(ID), shape=as.factor(ID)))
p1 <- p1 + scale_shape_manual(values=c(3, 6))
p1 <- p1 + scale_color_manual(breaks = c("ID == 9", "ID == 11"), values=c("red", "blue"))
p1
The graph below is what the above produced but as you can see its only showing the results for fish 11. How do I get it to show both.