R Code Setup:
I began by loading the ggplot2 package and accessing the built-in economics dataset, which contains time-based economic indicators.

Creating the Time Series Visualization:
Next, I created a time series line graph by mapping the date variable to the x-axis and median unemployment duration (uempmed) to the y-axis.

Visualization Output:

Discussion:
For this assignment, I used the built-in economics dataset in R to create a time series visualization using ggplot2. I chose to analyze the median duration of unemployment (uempmed) over time. The line graph shows how the number of weeks individuals remain unemployed has changed across different years.
From the visualization, I observed that the duration of unemployment fluctuates over time, with noticeable increases during certain periods. These peaks likely reflect times of economic difficulty, where individuals remain unemployed for longer periods. This demonstrates how time series visualization helps reveal trends and patterns that are not immediately obvious from raw data.
In my R code, I mapped date to the x-axis to represent time and uempmed to the y-axis to show changes in unemployment duration. The geom_line() function was used to create the continuous trend line, while labs() and theme_minimal() helped keep the graph clear and easy to interpret.
This assignment also connects to the work of Charles Minard, whose visualization of Napoleon’s 1812 campaign combined multiple variables to tell a powerful story over time. While my graph is much simpler, it still shows how time-based data can be used to communicate meaningful patterns and trends.
Leave a Reply