Тёмный

How to add maps to a ggplot2 figure in R (CC264) 

Riffomonas Project
Подписаться 22 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@rayflyers
@rayflyers 9 месяцев назад
Hey, Pat. Happy 2024! We missed you in 2023. I hope you're okay. I started teaching an R class last year, and I always recommend your videos to my students. Best wishes!
@niceday2015
@niceday2015 Год назад
Hello my dear Pat, happy new year! Hope to see you soon online! Best wishes
@alexandreloureiro5197
@alexandreloureiro5197 Год назад
Hi Pat, I just wanted to let you know how much I enjoy your work and how valuable it’s been to me. I’ve literally been binging your episodes and I can honestly say I’ve become a better R user because of you. Thank you, and keep up the good work!
@Riffomonas
@Riffomonas Год назад
Thank you so much for watching 🤓
Год назад
GitHub Actions and Snakemake are fantastic tools. Thank you very much for this video series! I've learn so much
@Riffomonas
@Riffomonas Год назад
Glad you like them! I love the combination too 🤓
@Pvillanueva13
@Pvillanueva13 Год назад
Thanks for these videos! I was looking for an introduction to Snakemake that starts from scratch and this was the perfect walkthrough. About the conflicts you were running into: something I've seen pretty often is deploying the webpage based off a separate branch. You can set up an action to run whatever workflow to render your webpage documents and then send it to a different branch. Then, you change the your settings to target that particular branch. The advantage of doing it this way is that you prevent the situation you ran in to by keeping the output of the pipeline (the webpage and figure) separate from your code. Then, if you want to make changes to your code, you don't have to worry about pulling down all the revisions resulting from pipeline runs. It's also not an issue here, but it also avoids the situation where you're working on a team and everyone is generating their own outputs and everyone's repo gets out of sync. The action I use is peaceiris/actions-gh-pages. I add a rule to put all of the webpage files into a docs folder, which I target with the action. Maybe a little overkill for this simple website, but this workflow is extensible to more complicated websites (and dovetails nicely with Quarto webpages). You can see my implementation of your project here: github.com/pommevilla/drought_index. Another comment - you use `snakemake -c 1 ...` to run the workflow, and you've mentioned before that you designed the workflow to work with one processor. Snakemake actually determines which rules can be run together based on the DAG. Rules run as soon as their dependencies are completed, so if a rule doesn't have any (for example, leaf nodes in the dag), then they can run right away. In my modified workflow (see DAG on the README on my repo), there are 4 child nodes, so I could technically call `snakemake -c 4 ...` run those four jobs in parallel. Also, when `get_all_archive` runs, it can use one of the clusters to run one of its two dependencies instead of waiting for the single processor to open up. I'm not sure how much runtime gains you'd gain here since the biggest chokepoints are the downloads and reading the dly files, but it's something to keep in mind. Again, thank you so much for these videos! I learned a lot of good stuff here, and I'm looking forward to future videos.
@Riffomonas
@Riffomonas Год назад
Thanks for watching!
@oluwafemioyedele
@oluwafemioyedele Год назад
Another great tutorial @pat, thank you for always releasing great tutorial!!!
@Riffomonas
@Riffomonas Год назад
My pleasure! Thanks for watching 🤓
@haraldurkarlsson1147
@haraldurkarlsson1147 Год назад
Pat, I am not sure where this would fit but since you are dealing with large datasets in your climate series then you are probably already familiar with the arrow and duckdb packages. The former allows you to work with larger-than-memory datasets in R. One of the main drawbacks of R is that it loads everything into memory and can thus be slow. arrow (which works with a bunch of different languages - Python, Rust, Mathlab and so forth - however, is similar to data.table (in R) but much faster. The key is that arrow uses a data structure (parque files) that works much more efficiently than the normal - row-wise data structures (e.g., csv). Duckdb is a structured database that lives on local drives (no need for cloud storage even for large files) and is quickly gaining ground. Both these programs have R versions (API?) and are excellent for big data. I would love to see you cover these. Thanks, H
@IarukaSkYouk
@IarukaSkYouk Год назад
sir, you are so amazing. I am learning alot from your channel thank you for sharing your knowledge to the community!
@mabenba
@mabenba Год назад
It's been quite a long vacation, Pat. Come back, we miss you.
@caseyj1144
@caseyj1144 Год назад
Hi Pat - just popping in to say you're missed! I hope all is well with you :)
@bassamsaleh8034
@bassamsaleh8034 Год назад
He hasn't make videos for the last 5 months, his videos were very good with a lot of useful tips and trick and workflows. I hope he's okay and doing well.
@thomasb1337
@thomasb1337 11 месяцев назад
e seems to be active on GitHub so I'd think he be ok.
@Riffomonas
@Riffomonas 7 месяцев назад
The videos are back - thanks for your patience!🤓
@fourlokody
@fourlokody 8 месяцев назад
Hi Pat! how did you set up R in VScode? seems to be a process where many(me) get tripped up. thanks!
@Riffomonas
@Riffomonas 7 месяцев назад
Eh lots of installing and uninstalling add ons. I haven’t put up a video because I’m not really sure what I have. My installation is a bit of a mess
@AnkitKumar-xh4eh
@AnkitKumar-xh4eh Год назад
Hey man! Why are you not creating more video, I really appreciate what you are doing
@haraldurkarlsson1147
@haraldurkarlsson1147 Год назад
Nice videos as usual. Since you are playing around with different programs I was wondering if you had looked at imagemagick? As far as I can see it can do amazing things both inside and outside R. I would love to learn more about it other than the rudimentary stuff I know. I hope you are willing to explore it and do a video on it. Thanks!
@mahatmaalimibrahim6631
@mahatmaalimibrahim6631 Год назад
What a skill! fantastic really. Professor may you please do a visualization project using the sf package?. Thank you.
@Riffomonas
@Riffomonas Год назад
Thanks! It's definitely on the list of things to explore in future episodes
@mahatmaalimibrahim6631
@mahatmaalimibrahim6631 Год назад
@@Riffomonas Thank professor.
@PA_hunter
@PA_hunter Год назад
Would be really cool if you could show approaches in R that implement the most accurate maps we have today (perhaps Winkel Tripel or AuthaGraph).
@mabenba
@mabenba Год назад
As always very amazing content! Thank you very much Patt! Can you make a video about making publication quality tables in R?
@Riffomonas
@Riffomonas Год назад
Thanks for the great suggestion! I know there have been a lot of great new packages developed to make attractive tables.
@mabenba
@mabenba Год назад
@@Riffomonas your welcome! Let me know if I can help you with something, research of packages or whatever!
@KamalSingh-dn7gv
@KamalSingh-dn7gv Год назад
Hi Pat. You have fantastic episodes about coding. Thank you. However, we the scientists use a lot of IC50/EC50 computations. Would it be possible to do an episode on this topic? Maybe using drc library from R. Thanks again - Kamal
@Riffomonas
@Riffomonas Год назад
Thanks Kamal - I'll keep it in mind for a future episode.
@musicspinner
@musicspinner Год назад
What's next for Prof. Schloss and the Code Club?
Далее
GIS 101: Mapping data points in R
18:46
Просмотров 3,4 тыс.
Как не носить с собой вещи
00:31
Просмотров 876 тыс.
R tutorial: Creating Maps and mapping data with ggplot2
10:30
A tutorial for writing functions in R (CC177)
14:37
Просмотров 16 тыс.
Create maps using the sf package in R programming
9:29
Using R to Map Europe, Asia, Africa, America, etc.
12:08
How to FULLY Customize Leaflet Maps using R programming
12:32