dwww Home | Show directory contents | Find package

barplot(table(mtcars$mpg), main = "All")
# should capture all plots in this loop
for (numcyl in levels(as.factor(mtcars$cyl))) {
  barplot(table(mtcars$mpg[mtcars$cyl == numcyl]), main = paste("cyl = ", numcyl))
}

Generated by dwww version 1.15 on Mon Jun 24 14:22:46 CEST 2024.