This is what I am working with to express the graph in 3 set colors.
# Define custom colors
color_palette <- c("2020 Urban" = "darkred", "2020 Suburban" = "gold", "2020 Rural" = "darkblue")
# Plot the data with custom color palette
ggplot(average_Pb_monthly, aes(x = Month, y = avg_Pb, group = Sample_Type, color = Sample_Type)) +
geom_line(size = 1) +
geom_point(size = 3) +
labs(title = "Average Monthly Concentration of Pb in Honey Samples (2020) by Land Use",
x = "Month",
y = "Average Pb Concentration",
color = "Land Use and Time") + # Label for legend
scale_fill_manual(values = color_palette) + # Remove name argument
theme_minimal() + # Change theme to remove grey background
theme(axis.text.x = element_text(angle = 45, hjust = 1))
Created on 2024-03-27 with reprex v2.1.0