You can embedd you-draw-it style charts in your rmarkdown reports or plain standalone HTML documents by using shinysense::drawr. The options work almost identical to how they do in shinydrawr.

To demo this let’s generate a simple timeseries dataset for our charts:

Now we can get into building our plots. We can start with the defaults.

You can do things like change the colors of the lines:

You can customize the axes ranges:

You can give your plot a title and custom axis labels.

You can even just have the user draw for fun. (Makes more sense when used with shinydrawr where data can be retreived)

For more information on all the options available visit the shinysense website’s documentation or simply run ?drawr in your R console.