Hello guys, I am not able to visualise a legend using the following code, does anyone know why?
dot_graph = ggplot()+
geom_point(data = table_3, aes(x = time, y=control), shape = "triangle", color = "blue")+
geom_point(data = table_3, aes(x = time, y=temp_20_pH_7.67), shape = "circle", color = "green")+
geom_point(data = table_3, aes(x = time, y=temp_23_pH_8.1), shape = "square", color = "limegreen")+
geom_point(data = table_3, aes(x = time, y=temp_23_ph_7.67), shape = "cross", color = "mediumblue")+
theme(legend.position = "top")+
xlab('time')+
ylab('% of settlement')+
scale_x_discrete(limits = c(0,20,40,60,80,100,120))+
scale_y_discrete(limits = c(0,20,40,60,80,100))+
theme_classic()+
theme(plot.margin = unit(c(2,2,2,2),"cm"))+
expand_limits(y=c(0,100))
Many thanks!