Here is my code:
ggplot() + geom_sf(st_as_sf(seventeen), mapping = aes(fill = NEIGHBOR_T)) +
geom_sf(st_as_sf(new_sp), mapping = aes(color = SafeRating), size = 3.8) +
geom_sf(st_as_sf(new_sp), mapping = aes(color = SafeRating), size = 3.8,
colour = "black", pch = 21) + coord_sf(datum = NA) + theme_void() +
ggtitle("I feel safe in my neighborhood.") +
theme(plot.title = element_text(hjust = 0.5, size = 35),
text = element_text(family = "Optima", size = 25),
legend.position = "bottom",
legend.key = element_rect(fill = "black"),
legend.key.size = unit(1, "cm"),
legend.title.align = 0.5,
legend.box = "vertical",
plot.background = element_rect(fill = "white")) +
scale_fill_manual(name = "Neighborhood Type: ",
values = c("#08B6CE", "#398AD7", "#2F66A9")) +
scale_color_manual(name = "Rating: ",
values = c("red", "dark red", "#675E24", "dark green", "green"),
labels = c("Strongly Disagree", "Disagree",
"Neutral", "Agree", "Strongly Agree"))
Here is what the visualization currently looks like:
I would like the squares associated with the ratings to be filled in just like for the neighborhood types. How is this done?