I have plotted a second set of lines with different point shapes and line types to denote another characteristic for two countries across a period. However, the appears that the new symbology has been displayed on top of the existing legend. How can I separate them out, so that I have two legends: one with line 1+symbol 1 for the first data type and line 2+symbol 2
mtcars2 <- mtcars
mtcars2$gear <- as.character(mtcars2$gear)
mtcars2 %>%
ggplot()+
geom_point(aes(x = disp, y = drat, color = gear))+
geom_line(aes(x = disp, y = drat, color = gear))+
geom_point(aes(x = disp, y = qsec, color = gear), shape = 17)+
geom_line(aes(x = disp, y = qsec, color = gear), linetype = "dashed")