HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

R Tutorial - Advanced Line Graphs with ggplot in RStudio - YOY!

8,243 views May 2, 2020 14:28

Watch on YouTube
ChannelTech Know How

Description from the creator

In this video tutorial we will show you exactly how to make enhanced and advanced line graphs that include a YOY (Year Over Year) graph. We will use the kableExtra library and kable function to make our data look better. We will then go step by step through line graphs and enhanced line graphs.

We will make two separate ggplot commands for graphing each years plot and then we will combine them into one. I will also show you some extras like aggregating the data by month from daily data. Daily data would be rather messy or unsightly in a YOY (Year over Year) graph, so we will aggregate it to monthly.

Join in the insightful discussions and more on my new FaceBook Data Science group. It's packed full of great free resources, code, cheatsheets, expert advice and much more! facebook.com/groups/2558540907733212/

Then we will enhance the graph with a title, subtitle and caption. The graph will become overloaded in R with all our enhancements so it won't display a legend on top of everything we are doing. But that is fine. It will be a great looking graph you can be proud of and easily replicate to any time range. The best part is you can make a reusable process that will digest daily data, get it in the right format and then aggregate it and create YOY line graphs for you.

I hope you found this video on creating line charts in r interesting and helpful.

Please take a moment to subscribe, like and share. Be sure and click the bell so that you will be notified each time I publish a great video like this one.

Thanks again and God bless!

About this tutorial

Tech Know How published this 14:28 video tutorial on May 2, 2020. It has been watched 8,243 times on YouTube.

Duration
14:28
Published
May 2, 2020
Views
8,243
Likes
60

Tags

Share

This tutorial in other languages