Geospatial Data in R - Maintaining Projections When Plotting With ggplot

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Thank you for uploading a wonderful tutorial.
I have a query that how we can plot two variables data on single map.
Like :
ggplot() +
geom_sf(data=shape, color='grey20', size=0.1, fill=NA) +
geom_sf(data = subset(clus_dzc1, type=='high'), aes(fill=CL2), size=0.1, color='black') +
scale_fill_discrete_sequential(palette='Burg', name="High-risk", rev=FALSE,
guide = guide_legend(ncol=2)) +
theme_void()

ggplot() +
geom_sf(data=shape, color='grey20', size=0.1, fill=NA) +
geom_sf(data = subset(clus_dzc1, type=='low'), aes(fill=CL2), size=0.1, color='black') +
scale_fill_discrete_sequential(palette='Blues', name="Low-risk", rev=FALSE,
guide = guide_legend(ncol=2)) +
theme_void()
. There are two plots code. Can you please guide me, how i can convert into one gg plot. Can you please write the code for me.
I shall be very thankful to you.

parwana-e-aatish