Here are a few quick examples to illustrate how you can use the {aopdata} package to map the spatial distribution of activities and urban services in Brazilian cities.
ggplot() +
geom_sf(data=df, aes(fill=T001), color=NA, alpha=.9) +
scale_fill_distiller(palette = "YlOrRd", direction = 1) +
labs(title='Spatial distribution of jobs', fill="N. of jobs") +
theme_void()In this case below, elementary schools with the
columnE003.
ggplot() +
geom_sf(data=df, aes(fill=factor(E003)), color=NA, alpha=.9) +
scale_fill_brewer(palette = "PuBuGn", direction = 1) +
labs(title='Spatial distribution of elementary schools', fill="N. of schools") +
theme_void()In this example, we mape high-complexity health care facilities
(column S004).
ggplot() +
geom_sf(data=df, aes(fill=factor(S004)), color=NA, alpha=.9) +
scale_fill_brewer(palette = "YlGnBu", direction = 1)+
labs(title='Spatial distribution of hospitals', fill="N. of hospitals") +
theme_void()
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.