Does anyone know how to change the alpha based on the specific line if a chart has multiple lines? Here's some code I put together but scale_alpha_manual doesn't do anything. Any assistance would be greatly appreciated.
ggplot(data = socialdisorder_concentration_preFEWC, aes(x = mthyr, y = rank.x, group = blockstreet, color = rank_colour2))+
geom_line () +
geom_point() +
scale_x_discrete(name = "Month-Year") +
scale_y_reverse(name = "Rank", breaks = seq (1,10, by = 1)) +
scale_color_manual(name = "Street Block",
labels = c(socialdisorder_concentration_preFEWC$blockstreet),
values = c(red = "red", orange = "orange", green = "dark green", grey = "lightgrey"),
limits = c("red", "orange", "green")) +
scale_alpha_manual (values = c(1, 1, 1/25))
It also didn't matter if I had 4 values for changing the colour and then 4 alphas (e.g., 1, 1, 1, 1/25)