First, we represent the data as simple dots for both wages and wheat price.
First, we represent the data as simple dots for both wages and wheat price.
As it is difficult to see the pattern for the wheat values evolution, we use the `stat_smooth()` function that shows a smoothed mean.
As it is difficult to see the pattern for the wheat values evolution, we use the `stat_smooth()` function that shows a smoothed mean (with a confidence level of 70%).
```{r, message=FALSE}
```{r, message=FALSE}
# Set color parameters
# Set color parameters
wages_color <- "#ff5733"
wages_color <- "#ff5733"
...
@@ -91,7 +91,7 @@ ggplot(df, aes(x=Year)) +
...
@@ -91,7 +91,7 @@ ggplot(df, aes(x=Year)) +
geom_point( aes(y=Wheat/1.5), size = 0.7, color = wheat_color) +
geom_point( aes(y=Wheat/1.5), size = 0.7, color = wheat_color) +
geom_line( aes(y=Wages), size = 0.3, color = wages_color, linetype="dashed") +
geom_line( aes(y=Wages), size = 0.3, color = wages_color, linetype="dashed") +
geom_line( aes(y=Wheat/1.5), size = 0.3, color = wheat_color, linetype="dashed") +
geom_line( aes(y=Wheat/1.5), size = 0.3, color = wheat_color, linetype="dashed") +