ggplot Select one variable from group to vizualize

I want to ask if is possinble to visualize only one selected variable in group
example I have group HM and it is As, Ni, Cd,Pb ....can I select only As in HM group and use it?

ggplot(data = b, mapping = aes(x = factor(year), y = value, color = type)) +
geom_boxplot(width=0.5,lwd=1, outlier.shape = NA)+
facet_wrap(vars(HM))

Subset the data and plot the results.

dat1  <- subset(b, b$HM == "As")

yes its working!!! thank you so much