Популярное

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

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

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

Топ запросов

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

Replacing a stacked bar plot with a dot plot in R with ggplot2 (CC352)

Автор: Riffomonas Project

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

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

Описание:

Pat uses R to show how to create a dot plot as an alternative to stacked bar plots like the one posted by the Pew Research Center describing people's sense of how different groups will fare under the Trump Administration. To pull this off he uses the ggplot2, showtext, and ggtext packages. The functions he uses from these packages include aes, coord_cartesian, element_blank, element_markdown, element_rect, element_text, factor, font_add_google, geom_hline, geom_point, ggplot, ggsave, labs, library, margin, mutate, pivot_longer, rev, scale_color_manual, showtext_auto, showtext_opts, theme, tribble, and unit. The newsletter describing this visualization at a 30,000 ft view can be found at https://shop.riffomonas.org/posts/my-.... You can find the data he uses and the code he developed in this episode at https://www.riffomonas.org/code_club/.... You can find the original Pew Research Center article at https://www.pewresearch.org/short-rea.... 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 pat@riffomonas.org!

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
3:10 Creating dot plot
5:37 Ordering categories with gaps between groups
11:18 Formatting plotting panel with grid lines
14:25 Adjusting the colors
17:30 Formatting and positioning the legend
20:34 Adding and formatting titles and caption
26:51 Finishing touches

Replacing a stacked bar plot with a dot plot in R with ggplot2 (CC352)

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

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

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

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

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

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

Creating and refactoring faceted petal plots in R with ggplot2 (CC393)

Creating and refactoring faceted petal plots in R with ggplot2 (CC393)

Visualizing the The Economist's Glass Ceiling Index in R with ggplot2 and ggborderline (CC353)

Visualizing the The Economist's Glass Ceiling Index in R with ggplot2 and ggborderline (CC353)

2D против 3D графиков в количественных финансах

2D против 3D графиков в количественных финансах

Converting a stacked bar plot to a dot plot in R with ggplot2 (CC382)

Converting a stacked bar plot to a dot plot in R with ggplot2 (CC382)

Новый тип графика! Что вы думаете о лепестковых графиках? Я не уверен, что этот эффективен (CC392)

Новый тип графика! Что вы думаете о лепестковых графиках? Я не уверен, что этот эффективен (CC392)

Анализ метилирования ДНК: EPIC-массив для анализа DMP и DMR с использованием minfi и R

Анализ метилирования ДНК: EPIC-массив для анализа DMP и DMR с использованием minfi и R

Data visualization with R's tidyverse and allied packages

Data visualization with R's tidyverse and allied packages

Почему не стоит использовать столбчатую диаграмму с накоплением? Пример из книги «Наш мир в данны...

Почему не стоит использовать столбчатую диаграмму с накоплением? Пример из книги «Наш мир в данны...

Remaking a jittered plot with P values from Nature Microbiology in R with ggplot2 (CC389)

Remaking a jittered plot with P values from Nature Microbiology in R with ggplot2 (CC389)

How to combine map and patchwork to make facets of facets with ggplot2 in R (CC387)

How to combine map and patchwork to make facets of facets with ggplot2 in R (CC387)

Критический анализ дизайна рисунка, описывающего состав когорты пациентов (CC391)

Критический анализ дизайна рисунка, описывающего состав когорты пациентов (CC391)

RWorkflow 2022

RWorkflow 2022

Does including a graphic improve the interpretability of complex datasets? (CC388)

Does including a graphic improve the interpretability of complex datasets? (CC388)

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

Magnus Carlsen Plays The Messi Of Chess

Magnus Carlsen Plays The Messi Of Chess

Recreating Pew Research plot showing where Americans get their news from on social media (CC379)

Recreating Pew Research plot showing where Americans get their news from on social media (CC379)

How to insert images into ggplot2 generated figures in R (CC390)

How to insert images into ggplot2 generated figures in R (CC390)

Bill Gates STUNNED as Windows 12 Faces MASSIVE Backlash Before Launch!

Bill Gates STUNNED as Windows 12 Faces MASSIVE Backlash Before Launch!

FERRAN ŁAMIE KOD, A YAMAL GASI ŚWIATŁO! CZY ONI JESZCZE KIEDYŚ PRZEGRAJĄ? | SKRÓT

FERRAN ŁAMIE KOD, A YAMAL GASI ŚWIATŁO! CZY ONI JESZCZE KIEDYŚ PRZEGRAJĄ? | SKRÓT

How overly precise P-values make data visualizations worse (CC385)

How overly precise P-values make data visualizations worse (CC385)

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



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



Контакты для правообладателей: infodtube@gmail.com