I have two or more data sources. Each has different colour groups. I do
pPrice = ggplot() +
geom_step(data = data1, aes(x=Time, y=v, colour=TYPE)) +
geom_point(data = data2, aes(x=Time, y=x, colour=g), shape = 18, size = 5)
pPrice
And I get:
I want to seperate the line and the dots into two legends. The first has a line in it with the corresponding colors and the second has the diamonds with the corresponding colors. My full graph contains even more layers with different data sets, an extra set with geom_points and 'x's instead of diamonds and colour groups. I would like to sperate those as well.