Four ways to set a color in R using ggplot2 and how to read hexadecimal (CC139)

preview_player
Показать описание
If you want the figures you generate in R to really stand out from the rest, you can modify the color you are using to help tell your data story and reflect your own personality. In this episode of Code Club, Pat will share with you four different ways to set a color as well as several approaches for matching the color schemes you find elsewhere using the Mac digital color meter. He also spends a little time describing what those hexadecimal codes are all about. Here, Pat continues to morph a figure he made that was originally created by Ipsos to a more stylized one published by chartr. The data depict the percentage of people in 15 countries who would be willing to receive the COVID-19 vaccine as of August and October of 2020.

You can also find complete tutorials for learning R with the tidyverse using...

0:00 Introduction
2:23 How do we find colors?
7:57 Using the digital color meter
9:54 Pick a color to be applied to all cases of a geom
13:55 Specify how colors are mapped to values
16:55 Modify color of non-data elements in the plotting window
19:59 Using HTML/CSS to modify colors
22:12 Recap
Рекомендации по теме
Комментарии
Автор

Can you give me some feedback? Do you prefer an all at once video like I did for the Ipsos version of the figure or this stepwise progression of the figure where I can hopefully provide more detail about what's going on?

Riffomonas
Автор

The thumbnail is fantastic. Great video!

Автор

768? I think it’s 16 million.

Great video! For my money you can’t beat ‘wheat’/‘papayawhip’ for a color scheme, but I do live in the desert.

russtin
Автор

Hi, do you happen to have a video on creating a graph with two y axes (representing two different variables)

everythingeverywherr
join shbcf.ru