# Blogging with RStudio

During my MBA I got a bit exposed to R and RStudio. R’s core strength is working with data.

While working with R I also stumbled across knitr, which allows writing really nice reports in $\LaTeX$ or Markdown with inline R. Really cool. Even better that someone has written some markdown templates for RStudio, that work together with hugo. This is a first test with a random example. it seems to work. Very cool.

Here is some sample R code which will produce the chart below.

library(ggplot2)
dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
qplot(carat, price, data=dsamp, colour=clarity)