Plot Spatial Data / Shapefiles in R | Gun Violence in Chicago

preview_player
Показать описание
How to read in spatial data and plot shapefiles and spatial points in R.

Thanks for watching!! ❤️

//R code

//Gun Violence Archive

//Shapefile of Chicago communities

Tip Jar 👉🏻👈🏻

♫ Eric Skiff - Chibi Ninja
Рекомендации по теме
Комментарии
Автор

This is exactly what I want! The best video I have found so far! Thank you.

lovelyshawnaaa
Автор

Thank you so much. This was really helpful in getting me started on spatial data plotting.

vpgokul
Автор

Hello, great video, although when I try to add the points to my final plot they don't appear. It worked for plotting the points in the first stage, and the shape file plotted fine. Do you know what might be going wrong?

acousticnewcomers
Автор

This must have been the fastest 6 mins spent on learning so much and and so well

rajeevsinha
Автор

Thank you for the clear and concise explanation

maniji
Автор

Thank you so much. You help me a lot!
:)

charpunk
Автор

Really a good video... I am practically using it right now. Thank You.

JagdishVispute
Автор

Thank you so much!!!, you saved me!!!

PedrodeUrdyma
Автор

Thanks, I think it must be work on my maps!! and this is a gorgeous explains.

piriyahassa
Автор

Hi I managed to create both the plots and the shape file, but when I bring them together they don't seem to overlay. Any ideas

zuberali
Автор

I am having trouble downloading rgdal it is saying there is no such package

redtail
Автор

Hi there, how do I count the number of raster pixels that lie within each category of shapefiles in R ? For example, I have land cover type shape file and temperature raster layer. I want to find the number of temperature raster pixels that lie within each category of land cover shape file.

ghamandimalla
Автор

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
Автор

how did you obtain the communities for each coordinate

irenemeniru
Автор

instead of dots, how I can you add circles of different sizes ? Thanks

antoniojck
Автор

Hi, how can i zoom the map and select just a region?? i need to select part of the map but i dont know how. thank you, and thank your for the help.

galinha
Автор

Great video.
Horrendous gun crime stats. Pleased I don't live in Chicago

ProfYaffle