I want to remove the whole panel from ggplot
2-way facet_grid
. I have taken some lead from this question. Here is the code with example data
library(ggplot2)
library(ggh4x)
df <- data.frame(x=rnorm(80),y=rnorm(80),
col=rep(c(" ", "B","C"," ","B","C","B","C"),each=10),
row=rep(c("a","a","a","b","b","b","c","c"),each=10))
ggplot(data=df,aes(x=x,y=y))+
geom_point()+
facet_grid2(row~col, scales = "free", independent = "all")
I want to remove the left panel. How can it be done?