df
Date Team Country Score
1/1/2012 TeamA Germany 10
1/2/2012 TeamA Germany 25
1/3/2012 TeamA Germany 50
1/1/2012 TeamB France 10
1/2/2012 TeamB France 70
1/3/2012 TeamB France 50
我想创建带有 ggplot 的 facet wrap graph 以具有标题,并将国家/地区放在每个图的左侧,如图所示。这对ggplot可行吗?
ggplot(df,aes(Date, Score, group=Team, colour=Team))+
geom_point(size=0.5) +
geom_smooth(method="lm", se=T, size=1) +
facet_wrap(~Team, scale="free")