I have the following boxplots.
How can I separate these boxplots into four group of boxplots.
Top row content separate boxplots of Jerry and Tom showing X and y
Bottom row content separate boxplots of Jerry and Tom showing a and b.
dat %>%
ggplot(aes(x = Address, y = Price, fill = Address)) +
geom_boxplot(fatten = 1, outlier.size = 0.8, lwd = 0.7) +
facet_grid(rows = vars(name), cols = vars(Address))
# maybe is better make a geom_point(), because you have only a number in Price and boxplot dont look very well
Thank you for your response. This loooks okay. However, I want to remove the unused x-axis names.
For instance, Only in first plot and b at last boxplot.
moreover, I was trying to use replex my problem with small sample size.