I have the following chart:
ggplot(data = centmerge, aes(x=long, y=lat, group = centmerge$group)) +
geom_polygon(stat = "identity", fill = "green", color = "black") +
geom_point(data = centavg, aes(x = long, y = lat, group = Performance.Country.Name, size = Action_Absolute_Value/1000000))+
ggtitle("Contract Costs") +
coord_map("polyconic")+
theme(axis.text.y = element_blank(), axis.text.x = element_blank(), axis.title.x=element_blank(),
axis.title.y=element_blank())
It creates the following chart:
My problem is that I cannot alter any of the aesthetics of the geom_point. For instance I cannot change the color of the points on the graph and I cannot change the legend title. All additions such as the:
theme(axis.text.y = element_blank(), axis.text.x = element_blank(), axis.title.x=element_blank(),
axis.title.y=element_blank())
at the end will affect only the geom_polygon(). If I try to change the color of the circles, it reverts to a pale red but then I cannot change it further, and I have had no luck changing the title using theme(), scale_fill_discrete(), labs() or any method. I first want to change the legend title, but also the color of the circles on the map. I can change the color of the map, but not the circles.
color = "peachpuff3"
inside the geom_point call? (Don't put it insideaes()
as it doesn't map to a column of data.) Is there a reason you need to make these edits post-hoc? – Gregor Thomas