1

I am plotting some points that correspond to ZIP codes on a US map. I want to have some sort of circle added to certain cities on the US map that will correspond to a zone with a certain amount of miles. For example, if I am looking at Los Angeles, I would want to add a faded circle on top to show a 50 mile radius around Los Angeles. Then I would want another circle on top of the previous one to show 51-150 mile radius around the city, and so on.

I am using ggplot2 package. I tried entering the ZIP code and/or the long/lat as a separate point but it's not working and I am kind of stumped.

ggplot(data1, aes(longitude, latitude)) +
geom_polygon(
data = us,
aes(x = long, y = lat, group = group),
color = 'black',
fill = "gray",
alpha = .35
) + theme_bw()+
geom_point(aes(color = count), size = .3, alpha = .25) +
xlim(-125,-65) + ylim(20, 50) + ggtitle("Density Map of Member Order ZIP 
Codes") +
xlab("Longitude") + ylab("Latitude")

*** This produces a plot of the US with many points corresponding to ZIP codes.

No error messages, just stumped on how to proceed and what to try next.

nicraven5
  • 21
  • 2

0 Answers0