0
thefts_fil %>% ggplot() +
geom_sf(aes(geometry = geometry, color = classification), alpha=0.5, inherit.aes = F) + 
coord_sf(expand = FALSE) + theme_void() + 
scale_color_manual(values = c("grand" = "#CC6699", "petty" = "#009966"), 
name = "Theft Category", labels = c("Grand", "Petty")) + 
labs( title = "Thefts in Chicago (Jan. & Feb. 2020)", 
caption = "Source: City of Chicago Data Portal") + 
coord_sf(expand = FALSE)

enter image description here

First time to use geom_sf(), I am quite confused about the situation. The axis of y is fine, but the x-axis is extremely short.

UseR10085
  • 7,120
  • 3
  • 24
  • 54
  • thefts_fil %>% ggplot() + geom_sf(aes(geometry=geometry,color=classification),alpha=0.5,inherit.aes = F)+ coord_sf(expand = FALSE)+ theme_void()+ scale_color_manual(values=c("grand"="#CC6699","petty"="#009966"), name="Theft Category", labels = c("Grand", "Petty"))+ labs( title = "Thefts in Chicago (Jan. & Feb. 2020)", caption = "Source: City of Chicago Data Portal" ) +coord_sf(expand = FALSE) – Henriette Lan Jul 17 '20 at 12:03
  • Please visit [How to make a great R reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). – UseR10085 Jul 17 '20 at 15:07

0 Answers0