我能够正确地制作绘图,但我想增加线条大小以使绘图更具可读性。当我在 geom_line 中尝试尺寸时,我的线条变得超级胖。我在数据框“数据”中有三个时间序列变量(x,y,z),我想在 y 轴上绘制它们,它们的长度不同,这意味着这些图在不同的时间开始。如何在不使它们变大的情况下更改线条的大小?
P_comp <- ggplot(data, aes(x=Date))+
geom_line(aes(y = x, colour = "green"))+
geom_line(aes(y = y, colour = "darkred"))+
geom_line(aes(y = z, colour = "steelblue"))+
theme_ipsum()+
theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank())+
theme(text = element_text(family = "serif"))+
xlab("Time") + ylab("Value") +
ggtitle("EPU Indices")+
theme(plot.title = element_text(hjust = 0.5, family = "serif", face = "plain", size = 16))+
theme(axis.title.x = element_text(hjust = 0.5, family = "serif", size = 12, face = "plain"))+
theme(axis.title.y = element_text(hjust = 0.5, family = "serif", size = 12, face = "plain"))
P_comp