GIS 101: Mapping data points in R
ฝัง
- เผยแพร่เมื่อ 8 ก.ค. 2024
- In this beginner's tutorial, I take you on a journey from loading and cleaning up the Geonames database to slicing and dicing the data to create an effective and pretty bubble map in R!
0:00 Intro
0:42 Data source
2:10 Load packages
3:02 Import data
5:20 Create lat/long fields
6:54 Basic map
7:33 Filter
8:57 Point-in-polygon
10:03 Add circle size
11:15 Change alpha value
12:00 Create labels I
13:00 Create labels II
13:47 Plot labeled map
15:14 Final map
17:37 Closing
Check the full code in my GitHub repo: github.com/milos-agathon/how-...
Follow my work on Instagram:
/ milos_makes_maps
Let's connect on Twitter:
/ milos_agathon
If you like my work, consider buying me a coffee:
www.buymeacoffee.com/milospop...
Music credits go to:
"Tokyo Music Walker - Way Home" is under a Creative Commons (CC-BY) license.
@tokyomusicwalker
Music promoted by BreakingCopyright: bit.ly/way-home-song
I hardly ever comment youtube videos but your work and the way you share it are remarkable. Cheers man!
Wow, thanks you for your positive feedback! I'm thrilled that my tutorial inspired you. Cheers!
Dropping a comment to push the algorithm, great video.
Thank you for your generous support, Riccardo! I really hope that my channel will be helpful to you
I'm really grateful for these tutorials 🎁 thankyou so much sir
Happy to help you!
Amazing tutorial! Please keep it up! Greetings from Costa Rica!
Thank you! This helps me to keep moving forward ⏩
Great tutorial. Thank you
My pleasure! I hope my tutorial will help you in your work
Great tutorial. I look forward to what might come next.
Thank you for your support! I'm happy that you found it useful
Awesome tutorial Milos, keep it up!
Thanks man! Really appreciate the support coming from such a brilliant TH-camr like you
Thanks a lot for this wonderful tutorial :)
Could we use
separate_wider_delim(cols = "coords", delim = ",", names =c("lat", "long"))
instead of using the stringr::str_split_fixed function.
So we can modify the dataframe in place without using a supplementary mutate function.
Furthermore the stringr package loading is unnecessary because it is included in the tidyverse package.
Hi alcor, I'm glad you liked the tutorial. Thank you for sharing your alternative method for separating columns in a dataframe. I agree that using `separate_wider_delim` from the `tidyrverse` package is a more concise and efficient way to do it. I appreciate your feedback and suggestion. Have a great day! :)
Sir, can I get a link of data source
Sure, here is the link to the table: public.opendatasoft.com/explore/dataset/geonames-all-cities-with-a-population-1000/table/?disjunctive.cou_name_en&sort=name
thank you sir@@milos-makes-maps