Content in Margin

Let’s start by adding some R results in the margin.

It is possible thanks to the #| column: margin chunk option.

  mtcars[1:3, 1:3]
mpg cyl disp
Mazda RX4 21.0 6 160
Mazda RX4 Wag 21.0 6 160
Datsun 710 22.8 4 108

Not too bad!

Side notes are a very good way to make your doc shines!

You should use it.

Now, let’s add some text / non R generated content in the margin!

Just a random few words:

Hi! I’m a side note! 🔥

That’s pretty much it. You can use markdown, equations, or any other HTML content in it!