R Markdown uses code chunks

My analysis is about diamonds. Let me tell you.

##I made a code chunk here
library(ggplot2)
## Warning: package 'ggplot2' was built under R version 3.4.3
df<-diamonds
mean(df$price)
## [1] 3932.8