Anke
Anke

Reputation: 651

facet_rep_wrap repeat.tick.labels=F still displays all axes

I have a grid of several density plots, but for readability I would like to display to the axes on only one, not all of them. I came across facet_rep_wrap from the lemon package, what is supposedly doing what I want, but it still displays all axes. What am I missing?

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

Upvotes: 1

Views: 2111

Answers (0)

Related Questions