facet_rep_wrap repeat.tick.labels = F по-прежнему отображает все оси - PullRequest
0 голосов
/ 30 апреля 2018

У меня есть сетка из нескольких графиков плотности, но для удобства чтения я хотел бы отобразить оси только на одной, а не на всех. Я наткнулся на 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

...