stripchart(price ~ year, data = Housing, method = "stack",
pch = 1, col = c("red", "blue"))
if (FALSE) {
library(ggplot2)
ggplot2::ggplot(data = Housing, aes(x = price, fill = year)) +
geom_dotplot() +
facet_grid(year ~ .) +
theme_bw()
}
Run the code above in your browser using DataLab