This code produces a black line for BrentSpot and a red line for CPI. When I add more lines/variables to the graph none of the colours match up.
ggplot(modified) +
geom_line(aes(Month, BrentSpot)) +
geom_line(aes(Month, CPI, colour = 'green')) +
theme_minimal() +
scale_y_continuous(
"Brent Spot Price",
sec.axis = sec_axis(~ . * 1.1, name = "CPI")
)