Is there a way to remove the blank lines from a geom_tile plot? If I try scale = \"free\"
it looks weird. I want to preserve the width and height of each facet.
You should add argument scales="free_y"
to facet_wrap()
to remove "empty" lines.
+facet_wrap(~Group,ncol=1,scales="free_y")
If you need to have the same width of tiles after removing the "empty" lines then use facet_grid()
instead of facet_wrap()
with argument space="free"
.
+facet_grid(Group~.,scales="free_y",space="free")