How to Make a Time Series Plot with ggplot2 in R - Demonstration

Опубликовано: 11 Февраль 2026
на канале: Monika Wahi
2,188
121

*Note: I may be compensated, but you will not be charged, if you click on the links below.

In this video, Monika Wahi demonstrates how to use ggplot2 to make a time series plot in R.
Files on Github: https://buff.ly/3jPUNu5
Blog post about the topic: https://buff.ly/3xiFMJ2
Video of ggplot2 code being run:    • Running ggplot2 Code, Building Pie Chart, ...  

💡 If you are a public health practitioner looking for a targeted program for enhancing your data science skills, please sign up to participate in my 30-minute market research interview so I can get your feedback: https://buff.ly/3UnLqmq

WANT TO SUPPORT MONIKA ON SOCIAL MEDIA?
❤️Subscribe to Monika's YouTube channel: https://buff.ly/2W6ijuc
🧡Follow/connect with Monika on LinkedIn:   / dethwench  
💛Follow Monika on Twitter:   / dethwench  
💚Try Monika’s courses on LinkedIn Learning: https://buff.ly/2Ihd4Rq
💙Try Monika's boutique research methods and data science courses here: https://buff.ly/3zM243P

Timestamps and links as the come up are below:
00:54 Description of dataframe with three columns: Year, Frequency, and Condition_Modality
02:08 Context for the analysis – deeper learning in online environments. Here is the final publication: https://buff.ly/3E0FoAe
02:36 Explanation of scales package: https://scales.r-lib.org/
02:55 Running library code to load packages
03:05 Explanation of color vector
03:24 Discussion of ggplot2 code
03:39 Declaring geom_line
04:28 Discussion of scale_x_datetime
05:08 Running plot code

How to Make a Time Series Plot with ggplot2 in R - Demonstration