Simplest possible chunk, no name or options specified.

  library(ggplot2)
  ggplot(diamonds, aes(x=color)) + geom_bar()

plot of chunk unnamed-chunk-1

You can also embed plots, for example:

  ggplot(diamonds, aes(x=color, fill=color)) + geom_bar()

plot of chunk html-diamond-bar

Inline examples