Histograms in R with ggplot and geom_histogram() [R-Graph Gallery Tutorial]

preview_player
Показать описание
In this tutorial I show how to create Histograms in R with hist() and geom_histogram().

The examples are based in the R-Graph Gallery. I show how histograms can be used to visualize multiple different distributions at once.

⏱ Time Stamps ⌚
0:00​ - Intro and video overview
0:58​ - hist() and cut() function for histograms
3:18​ - geom_histogram() function arguments
4:25​ - Mirror histogram plot
5:12​ - Multiple histograms with position
6:35​ - Multiple histograms with facet_wrap
8:10 - Marginal distributions
9:00 - Age/population pyramid

External Links:

Background Music:
Рекомендации по теме
Комментарии
Автор

If you want to download the R code from this video you can do this here in my free skool community:

TheDataDigest
Автор

Nice tutorial. Hope you get more views :)

mick
Автор

Hello, how can I create intervals for the age like you have, 20-29. 30-39, 40-49, in the table itself? When I import a txt document I've made with the intervals in one category, they are interpreted as Character data and not double data, so I can't make histograms essentially. How have you done it?

jtotherock
Автор

Hi, thanks for the tutorial, I personally find the background music distractive, but maybe it's just me.

NatashaKasher
Автор

Kindly show how different variables can be put in one graph. Like, I have mean value of four soil properties along with 13 treatments. I wanna put these 4 soil properties along with treatments in a single graph but I don't know how?

Peer_Tajamul
join shbcf.ru