my code is
ggplot(output1, aes(Year, SuPDem, color = as.factor(v2x_regime))) +
geom_line(size = 0.6) +
scale_color_manual(values = c("orange", "blue")) +
theme_minimal(base_size = 5)
The index (v2x_regime) is a binary index. 0 indicates autocracy, 1 indicates democracy. I would like to label the lines as democracy and autocracy. How can I do that?