3 VS Code Snippets, to make writing in Quarto even easier! πŸ”¨

Today, I bring you something hands-on: 3 snippets to implement figures in Quarto with ease. Cross-referencing, captions and all. These 3 snippets include: r-figure, r-figure-subplot2 and r-figure-subplot3. You can find them at the end of this article.

I love writing, programming and analysing data.
Quarto allows me to combine all three, for example in VS Code.

Heads up! Quarto is here to stay. Immediately combine R & Python in your next document: An extension on a recent post.
Quarto is a generalisation of R Markdown by the same core developers. This framework allows you to weave together R, Python, Julia, and OJS with the code’s output and your writing.

Today, I bring you something hands-on: 3 snippets to implement figures in Quarto with ease. Cross-referencing, captions and all.

These 3 snippets include: r-figure, r-figure-subplot2 and r-figure-subplot3. You can find them at the end of this article.

r-figure simply implements a single figure, while the other two snippets implement 2-figure and 3-figure subplots respectively. The 2-figure subplot looks something like this in your paper:

This post is for subscribers only

Already have an account? Sign in.

Subscribe to ds-econ

Sign up now to get access to the library of members-only issues.
Jamie Larson
Subscribe