r - my plotting of geom_sf has a quite strange scale
问题描述
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)
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.
解决方案
推荐阅读
- javascript - 通过客户端的浏览器从扫描仪捕获图像
- php - 加入 Find 和 Foreach 在 Laravel 中检索错误数据
- javascript - 在画布上绘制图像的裁剪版本
- php - 在目录中搜索文件并返回值
- webpack - 如何解决 Vaadin flow (14) 框架中的“您可能需要适当的加载程序来处理此文件类型”?
- rally - 如何使用集合元素的属性过滤商店
- c - “未签名容量”是什么意思?
- java - 如何从firestore检索数组映射数据并存储在android studio中的数组中?
- php - PHPMailer siteground 问题与邮件 SMTP 连接问题
- ios - Swift 中 (UI) 委托方法方面的代码优化