facet_rep_wrap repeat.tick.labels = F仍显示所有轴

时间:2018-04-30 18:14:50

标签: r ggplot2 facet-wrap r-lemon

我有一个多个密度图的网格,但为了便于阅读,我想只在一个轴上显示轴,而不是全部。我从柠檬包中看到了facet_rep_wrap,据说它正在做我想要的,但它仍然显示所有轴。我错过了什么?

ggplot(2017.fixes, aes(x=Long, y=Lat) ) +
    stat_density_2d(aes(fill = ..level..), geom = "polygon", contour=T) +    
    scale_fill_distiller(palette="Spectral", direction=-1) +
    geom_polygon (data=map.df,aes(x=long, y=lat,group=group), color="grey50", fill="grey", na.rm=T) +
    geom_point(data=stations.df, aes(x=Long, y=Lat), colour="black", pch=24,bg="#00CC00", cex=1) +      
    coord_map(xlim = c(-156.95, -156.4), ylim = c(20.55, 21.05), projection="mercator") +
    theme_light() +
    facet_rep_wrap(~Date, repeat.tick.labels=F) 

enter image description here

0 个答案:

没有答案