library(tidyverse)
library(gghighlight)
theme_set(theme_bw())
p <- ggplot(
airquality,
aes(Day, Temp, group = Month, color = factor(Month)))+
geom_line()+
scale_color_viridis_d()+
labs(x ="Day of Month", y ="Temperature")+
theme(legend.position ="top")
p
1
2
3
4
5
6
7
8
9
10
11
12
library(tidyverse)
library(gghighlight)
theme_set(theme_bw())
p <- ggplot(
airquality,
aes(Day, Temp, group = Month, color = factor(Month)))+
geom_line()+
scale_color_viridis_d()+
labs(x ="Day of Month", y ="Temperature")+
theme(legend.position ="top")
p + gghighlight(max(Temp)>93, label_key = Month)