Histograms and Density Plots with {ggplot2}

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • Histograms display the shape of the distribution of continuous numeric data. The distribution can be symmetrical, right-skewed, left-skewed, unimodal, or multimodal? Knowing the shape of the distribution helps us decide which statistical test is appropriate. For example, if the distribution is symmetrical, we could use a t-test or linear regression. However, if the distribution is skewed, we’d need to use the Mann-Whitney test or median regression. Moreover, when the data has several peaks, we might need to transform the data before analyzing it. Otherwise, when we calculate central tendencies like the average, we will heavily misrepresent reality. Histograms also help to identify outliers, which is very useful for cleaning the data. So, visualizing the distribution with histograms and density plots helps us avoid these pitfalls.
    If you only want the code (or want to support me), consider join the channel (join button below any of the videos), because I provide the code upon members requests.
    Enjoy! 🥳
    Welcome to my VLOG! My name is Yury Zablotski & I love to use R for Data Science = "yuzaR Data Science" ;)
    This channel is dedicated to data analytics, data science, statistics, machine learning and computational science! Join me as I dive into the world of data analysis, programming & coding. Whether you're interested in business analytics, data mining, data visualization, or pursuing an online degree in data analytics, I've got you covered. If you are curious about Google Data Studio, data centers & certified data analyst & data scientist programs, you'll find the necessary knowledge right here. You'll greatly increase your odds to get online master's in data science & data analytics degrees. Boost your knowledge & skills in data science and analytics with my engaging content. Subscribe to stay up-to-date with the latest & most useful data science programming tools. Let's embark on this data-driven journey together!

Комментарии • 21

  • @GreenManXY
    @GreenManXY Год назад

    Good work! Recently learned about the after_stat function, really useful to enhance the information in the graph.
    One suggestion for a video would be how to enhance some of the graphs that are drawn for the whole data set by packages like DataExplorer. It's really useful to get a whole set of graphs by just writing plot_bar(mtcars, by = "cyl") but I found it hard to easily modify the resulting graphs, for example to add labels or percentages.

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  Год назад

      Great suggestion! I also have realised that some packages can actually accept the ggplot2 function on top of them. For example sjPlot or effects packages have no problem. But thanks, I'll have a look at it, and if I find a meaningful solution and enough material for the video, I'll produce one. Thanks for watching!

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  Год назад

      by the way, I have to explore "after_stat()" more, it's a new function as far as I know.

  • @yominorwemajor7235
    @yominorwemajor7235 Год назад +1

    I really enjoy your videos!
    Do you consider doing a video for the use of flextable package?😊

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  Год назад

      Great suggestion! I will put it on the list. But not too long ago, I made a video on {gtsummary} package. It's also about tables. And, to be honest, I never needed another one. So, if you did not see gtsummary, give it a chance. And you did, thanks you for watching!

  • @hikeaway1596
    @hikeaway1596 Год назад +2

    thanks for another cool video!

  • @mayar9078
    @mayar9078 16 дней назад

    Thank you ❤

  • @GFXHDTV
    @GFXHDTV Год назад +1

    love this thank you so much and please do more and keep it up

  • @ibrahimlawan9663
    @ibrahimlawan9663 Год назад

    Great Job. I always learn a lot from your videos

  • @chacmool2581
    @chacmool2581 Год назад

    Do a vid on violin plots which combine boxplots with probability density plots. I rather prefer those to histograms.

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  Год назад

      I have actually done a whole video on box-violin-plots earlier: All you need to Know Box-Plots. So, I am not sure I need another one. Let's me know if you thing so and tell why?

    • @chacmool2581
      @chacmool2581 Год назад

      @@yuzaR-Data-Science No, probably not. I'll have to check out that video. Thanks.

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  Год назад +1

      it's an old one: ruclips.net/video/O4wx-J5g4Nc/видео.html
      so, don't be surprised about the quality and delivery ;)

  • @aram5704
    @aram5704 Год назад +1

    Great video! Keep going.

  • @maicelmonzonperez
    @maicelmonzonperez Год назад

    great