我的问题很简单,但经过多次尝试后我都未能解决.我只想打印一个刻面图(使用ggplot2中的facet_wrap制作)的一些方面,并删除我不感兴趣的那些.
我有与ggplot2的facet_wrap,如下所示:
#anomalies linear trends
an.trends <- ggplot()+
geom_smooth(method="lm", data=tndvilong.anomalies, aes(x=year, y=NDVIan, colour=TenureZone,
group=TenureZone))+
scale_color_manual(values=miscol) +
ggtitle("anomalies' trends")
#anomalies linear trends by VEG
an.trendsVEG <- an.trends + facet_wrap(~VEG,ncol=2)
print(an.trendsVEG)
Run Code Online (Sandbox Code Playgroud)
我按照预期得到了情节(你可以在下面的te链接中看到它):
问题是:我如何只打印出我感兴趣的面孔?我只想打印"CenKal_ShWoodl","HlShl_ShDens","NKal_ShWoodl"和"ThShl_ShDens"
谢谢