data(mtcars)
This example shows how to generate chunk labels dynamically with the brew syntax. It was motivated by the SO question: http://stackoverflow.com/q/12095113/559676
hist(mtcars$mpg[mtcars$cyl == 6], main = paste(6, "cylinders"))
hist(mtcars$wt[mtcars$cyl == 6], main = paste(6, "cylinders"))
hist(mtcars$mpg[mtcars$cyl == 4], main = paste(4, "cylinders"))
hist(mtcars$wt[mtcars$cyl == 4], main = paste(4, "cylinders"))
hist(mtcars$mpg[mtcars$cyl == 8], main = paste(8, "cylinders"))
hist(mtcars$wt[mtcars$cyl == 8], main = paste(8, "cylinders"))