filmov
tv
Histograms in R | R Tutorial 2.4 | MarinStatsLectures
Показать описание
Histograms in R: How to Create and Modify Histograms with R
►In this R video tutorial, we will learn how to produce histograms in R and add a density curve to the plot using the "hist" and "lines" functions. We will also explain how to modify the histogram by adding titles, changing axes labels, changing the line colour or width and many more by using "main", "xlab", "xlim", "col", "lwd" arguments and more .
Table of Content:
0:00:05 What is a histogram and when is it appropriate to use a histogram for your data
0:00:25 how to produce a histogram in R using the "hist" function
0:00:30 how to access the help menu for histogram in R
0:00:42 What are the default options for histogram plots in R
"Modifying a histogram in R":
0:01:03 how to change the y-axis of a histogram to represent a "probability density" rather than "frequencies" using "freq" argument or "prob" argument
0:01:45 how to change the x or y limits of a histogram in R using the "xlim" or "ylim" argument
0:02:01 how to change the "bin width" of a histogram using the "breaks" argument
0:03:08 how to add a title to a histogram in R using the "main" argument
0:03:18 how to add labels to the x-axis or y-axis of a histogram in R using "xlab" or "ylab" arguments
0:03:31 how to rotate the values on the y-axis of a histogram in R using the "las" argument
0:03:39 how to add a "density curve" to a histogram in R using the "lines" command
0:04:00 how to change the color of the density curve in a histogram in R using the "col" argument
0:04:07 how to change the width of the density curve in a histogram in R using the "lwd" argument
These video tutorials are useful for anyone interested in learning data science and statistics with R programming language using RStudio.
► ► Watch More:
Follow MarinStatsLectures
Our Team:
Content Creator: Mike Marin (B.Sc., MSc.) Senior Instructor at UBC.
Producer and Creative Manager: Ladan Hamadani (B.Sc., BA., MPH)
These videos are created by #marinstatslectures to support some courses at The University of British Columbia (UBC) (#IntroductoryStatistics and #RVideoTutorials for Health Science Research), although we make all videos available to the everyone everywhere for free.
Thanks for watching! Have fun and remember that statistics is almost as beautiful as a unicorn!
►In this R video tutorial, we will learn how to produce histograms in R and add a density curve to the plot using the "hist" and "lines" functions. We will also explain how to modify the histogram by adding titles, changing axes labels, changing the line colour or width and many more by using "main", "xlab", "xlim", "col", "lwd" arguments and more .
Table of Content:
0:00:05 What is a histogram and when is it appropriate to use a histogram for your data
0:00:25 how to produce a histogram in R using the "hist" function
0:00:30 how to access the help menu for histogram in R
0:00:42 What are the default options for histogram plots in R
"Modifying a histogram in R":
0:01:03 how to change the y-axis of a histogram to represent a "probability density" rather than "frequencies" using "freq" argument or "prob" argument
0:01:45 how to change the x or y limits of a histogram in R using the "xlim" or "ylim" argument
0:02:01 how to change the "bin width" of a histogram using the "breaks" argument
0:03:08 how to add a title to a histogram in R using the "main" argument
0:03:18 how to add labels to the x-axis or y-axis of a histogram in R using "xlab" or "ylab" arguments
0:03:31 how to rotate the values on the y-axis of a histogram in R using the "las" argument
0:03:39 how to add a "density curve" to a histogram in R using the "lines" command
0:04:00 how to change the color of the density curve in a histogram in R using the "col" argument
0:04:07 how to change the width of the density curve in a histogram in R using the "lwd" argument
These video tutorials are useful for anyone interested in learning data science and statistics with R programming language using RStudio.
► ► Watch More:
Follow MarinStatsLectures
Our Team:
Content Creator: Mike Marin (B.Sc., MSc.) Senior Instructor at UBC.
Producer and Creative Manager: Ladan Hamadani (B.Sc., BA., MPH)
These videos are created by #marinstatslectures to support some courses at The University of British Columbia (UBC) (#IntroductoryStatistics and #RVideoTutorials for Health Science Research), although we make all videos available to the everyone everywhere for free.
Thanks for watching! Have fun and remember that statistics is almost as beautiful as a unicorn!
Комментарии