Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

How to extract data from a heatmap with R using the tidyverse (CC348)

Автор: Riffomonas Project

Загружено: 2025-03-11

Просмотров: 1147

Описание:

Pat uses R to show how to extract the underlying data from a heatmap published in the New York Times describing the increase in deaths among Black men in Chicago due to drug overdoses. To pull this off he uses the ggplot2, dplyr, scales, and png packages. The functions he uses from these packages include as.character, as.numeric, as_tibble, col2rgb, cut, filter, function, group_by, library, map, matrix, mean, mutate, names, ncol, nrow, pal_gradient_n, pivot_longer, readPNG, rgb, select, slice_min, sqrt, str_detect, str_replace, summarize, t, table, tibble, unnest, which.max, and write_tsv. You can find the data and code he developed in this episode at https://www.riffomonas.org/code_club/.... You can find the original New York Times article at https://www.nytimes.com/2025/01/30/up.... If you have a figure that you would like to see me discuss in a future newsletter and episode of Code Club, email me at [email protected]!

Want more practice on the concepts covered in Code Club? You can sign up for my weekly newsletter at https://shop.riffomonas.org/youtube to get practice problems, tips, and insights. If you're interested in purchasing a video workshop be sure to check out https://riffomonas.org/workshops/

Support Riffomonas by becoming a Patreon member!
  / riffomonas  

You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data: https://www.riffomonas.org/minimalR/
General data: https://www.riffomonas.org/generalR/

If you want to cite this video, please consider citing https://journals.asm.org/doi/10.1128/...

0:00 Introduction
6:20 Extracting content of PNG file into R
19:15 Isolating heatmap from rest of image
23:09 Getting RGB hexcode for each tile in heatmap
37:40 Creating standard curve
46:55 Applying standard curve to extract n

How to extract data from a heatmap with R using the tidyverse (CC348)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

array(10) { [0]=> object(stdClass)#5695 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "t4bGrrmhDYs" ["related_video_title"]=> string(78) "Recreating a NYT heatmap of deaths by drug overdoses in R with ggplot2 (CC349)" ["posted_time"]=> string(25) "3 месяца назад" ["channelName"]=> string(18) "Riffomonas Project" } [1]=> object(stdClass)#5668 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "IzOLk-NihXY" ["related_video_title"]=> string(97) "Visualizing contributions to the US GDP as a Washington Post waterfall plot using ggplot2 (CC361)" ["posted_time"]=> string(63) "Трансляция закончилась 4 дня назад" ["channelName"]=> string(18) "Riffomonas Project" } [2]=> object(stdClass)#5693 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "JLk8XKIA0wA" ["related_video_title"]=> string(77) "How to recreate a historic map in R using the sf and ggplot2 packages (CC347)" ["posted_time"]=> string(25) "3 месяца назад" ["channelName"]=> string(18) "Riffomonas Project" } [3]=> object(stdClass)#5700 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "pCXL0msqJD0" ["related_video_title"]=> string(97) "Showing the change in US death rate since before the COVID-19 pandemic with R's tidyverse (CC356)" ["posted_time"]=> string(25) "2 месяца назад" ["channelName"]=> string(18) "Riffomonas Project" } [4]=> object(stdClass)#5679 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "sxLMh4-QRg4" ["related_video_title"]=> string(103) "Как сделать сайт с помощью нейросети? (ИИ) 5 способов 👋🏻" ["posted_time"]=> string(25) "2 месяца назад" ["channelName"]=> string(23) "Данил Суслов" } [5]=> object(stdClass)#5697 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "JpSMse3eVVg" ["related_video_title"]=> string(70) "Creating Visualizations using Pandas Library | Python Pandas Tutorials" ["posted_time"]=> string(21) "2 года назад" ["channelName"]=> string(16) "Alex The Analyst" } [6]=> object(stdClass)#5692 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "iVa1Rj7cOqk" ["related_video_title"]=> string(92) "Как срочников заманивают на войну (English subtitles) @Max_Katz" ["posted_time"]=> string(20) "21 час назад" ["channelName"]=> string(19) "Максим Кац" } [7]=> object(stdClass)#5702 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "2jF3GurBor8" ["related_video_title"]=> string(165) "ЗА ПЕРЕВОДЫ на карту начали БЛОКИРОВАТЬ! Как избежать блокировки карты в 2025. НОВЫЕ правила" ["posted_time"]=> string(23) "7 часов назад" ["channelName"]=> string(12) "InvestFuture" } [8]=> object(stdClass)#5678 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "p0Ri2tNb-6I" ["related_video_title"]=> string(186) "Человечество навсегда ЗАПЕРТО в Солнечной системе? Астрофизик Борис Штерн раскрыл неприятную правду" ["posted_time"]=> string(19) "2 дня назад" ["channelName"]=> string(23) "Глеб Соломин" } [9]=> object(stdClass)#5696 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "F0ZRYo4SUb8" ["related_video_title"]=> string(49) "Create maps using the sf package in R programming" ["posted_time"]=> string(28) "10 месяцев назад" ["channelName"]=> string(17) "R Programming 101" } }
Recreating a NYT heatmap of deaths by drug overdoses in R with ggplot2 (CC349)

Recreating a NYT heatmap of deaths by drug overdoses in R with ggplot2 (CC349)

Visualizing contributions to the US GDP as a Washington Post waterfall plot using ggplot2 (CC361)

Visualizing contributions to the US GDP as a Washington Post waterfall plot using ggplot2 (CC361)

How to recreate a historic map in R using the sf and ggplot2 packages (CC347)

How to recreate a historic map in R using the sf and ggplot2 packages (CC347)

Showing the change in US death rate since before the COVID-19 pandemic with R's tidyverse (CC356)

Showing the change in US death rate since before the COVID-19 pandemic with R's tidyverse (CC356)

Как сделать сайт с помощью нейросети? (ИИ) 5 способов 👋🏻

Как сделать сайт с помощью нейросети? (ИИ) 5 способов 👋🏻

Creating Visualizations using Pandas Library | Python Pandas Tutorials

Creating Visualizations using Pandas Library | Python Pandas Tutorials

Как срочников заманивают на войну (English subtitles) @Max_Katz

Как срочников заманивают на войну (English subtitles) @Max_Katz

ЗА ПЕРЕВОДЫ на карту начали БЛОКИРОВАТЬ! Как избежать блокировки карты в 2025. НОВЫЕ правила

ЗА ПЕРЕВОДЫ на карту начали БЛОКИРОВАТЬ! Как избежать блокировки карты в 2025. НОВЫЕ правила

Человечество навсегда ЗАПЕРТО в Солнечной системе? Астрофизик Борис Штерн раскрыл неприятную правду

Человечество навсегда ЗАПЕРТО в Солнечной системе? Астрофизик Борис Штерн раскрыл неприятную правду

Create maps using the sf package in R programming

Create maps using the sf package in R programming

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]