Summary
Keywords
Full Transcript
Histograms in R: How to Create and Modify Histograms with R Find the Free Practice Dataset: (https://bit.ly/2rOfgEJ) For more Statistics and R Programming Tutorials: (https://goo.gl/4vDQzT); Learn about Histograms vs Probability Distributions (Sample vs Population) Here: (https://youtu.be/DOnucdP7LNU) ►► Like to support us? You can Donate (https://bit.ly/2CWxnP2), Share our Videos, Leave us a Comment and Give us a Thumbs up! Either way We Thank You! ►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: ► Intro to Statistics Course: https://bit.ly/2SQOxDH ►Data Science with R https://bit.ly/1A1Pixc ►Getting Started with R (Series 1): https://bit.ly/2PkTneg ►Graphs and Descriptive Statistics in R (Series 2): https://bit.ly/2PkTneg ►Probability distributions in R (Series 3): https://bit.ly/2AT3wpI ►Bivariate analysis in R (Series 4): https://bit.ly/2SXvcRi ►Linear Regression in R (Series 5): https://bit.ly/1iytAtm ►ANOVA Concept and with R https://bit.ly/2zBwjgL ►Hypothesis Testing: https://bit.ly/2Ff3J9e ►Linear Regression Concept and with R Lectures https://bit.ly/2z8fXg1 Follow MarinStatsLectures Subscribe: https://goo.gl/4vDQzT website: https://statslectures.com Facebook:https://goo.gl/qYQavS Twitter:https://goo.gl/393AQG Instagram: https://goo.gl/fdPiDn 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!
