This is a plot that I'm trying to create like the one that was shown in nytimes.
My code:
ggplot(gwsj, aes(x = Year, y = Freq, color = Gender)) +
geom_line(size = 1.2, aes(alpha = Functn)) +
geom_point(aes(alpha = Functn)) +
scale_color_manual(values = c("Female" = "#d81b60", "Male" = "#1976d2")) +
facet_wrap(~OrgType, scales = "free_y") +
theme_pubclean()
What I get:
What I want
The scale that shows the gender
count and the Functn
legend with colors and opacity like the ones shown in nytimes. I've tried many things, but I'm missing something somewhere