Simplest possible chunk, no name or options specified.
library(ggplot2) ggplot(diamonds, aes(x=color)) + geom_bar()
You can also embed plots, for example:
ggplot(diamonds, aes(x=color, fill=color)) + geom_bar()
Inline examples