在 ggplot 中删除未使用的因子组合

Drop unused factor combination in ggplot

我想知道是否可以只在面板“2”上绘制因子 "b"? 非常感谢任何帮助!

library(tidyverse) 

df <- tibble(
  group = c(1, 2, 1),
  item_name = factor(c("a", "b", "b")),
  value1 = 1:3
)

df %>% ggplot(aes(item_name, value1)) + geom_point() + facet_wrap(~group)

df %>%  
ggplot(aes(item_name, value1)) + 
geom_point() + 
facet_wrap(~group, scale="free_x")