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

Опубликовано: 13 Май 2026
на канале: Monika Wahi
879
107

*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 with error bars in R.
Files on Github: https://buff.ly/3jPUNu5
Blog post about the topic: https://buff.ly/3xiFMJ2
Video about making a time series plot without error bars:    • How to Make a Time Series Plot with ggplot...  

💡 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:45 Viewing the plot dataframe we will use
02:16 Calling library ggplot2, and creating a color vector called timeseries_error_colors
02:50 Reviewing ggplot2 code
03:24 Description of using geom_text for data labels offset from the intersection of x and y
04:15 Using scale_color_manual with our color vector
04:30 Reviewing geom_errorbar code
05:09 Reviewing scale_x_continuous code
05:55 Circumstances where I like to use theme_classic
06:20 Running the plot followed by interpretation

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