小编use*_*133的帖子

只选择一些要在facet_wrap,ggplot2中打印的构面

我的问题很简单,但经过多次尝试后我都未能解决.我只想打印一个刻面图(使用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链接中看到它):

VEG的异常趋势

问题是:我如何只打印出我感兴趣的面孔?我只想打印"CenKal_ShWoodl","HlShl_ShDens","NKal_ShWoodl"和"ThShl_ShDens"

谢谢

r ggplot2 facets

2
推荐指数
1
解决办法
4479
查看次数

标签 统计

facets ×1

ggplot2 ×1

r ×1