Interative Visualizations
(for the casual user)
.txt..ipynb.ipynb..qmd.
.md.qmd file.qmd file, say “example.qmd”quarto preview example.qmd for live-preview; ctrl+C or cmd+C kills this process.quarto render example.qmd to create output files.Figure 1: Temperature and ozone level.
echo: false hides code completelycode-fold: true folds code insteadoutput: false to not display computation outputlabel: is figure name for cross-referencing/hyperlinkfig-cap: is figure captionfig-alt is alternative text for screen readers to read description of imageSits at the top of your Quarto document and sets global document properties:
format: html for single webpageformat: dashboard for data dashboardformat: revealjs for slides on the webformat: pdf for printed documentsExample of a webpage
Example of dashboard code in Quarto
Example of resulting dashboard
Example of customer churn data dashboard
Go to Quarto’s guide webpage:
See documentation.
Example of Markdown and what is rendered
“Div fencing” ::: wraps section in HTML divs. You can add custom or Quarto built-in classes to these divs:
::: {.border}
This content can be styled.
:::
Use square brackets around selection to add HTML spans:
::: {.callout-note}
Note that there are five types of callouts, including:
`note`, `warning`, `important`, `tip`, and `caution`.
:::
{fig-align="center"}
Use square brackets around selection to add HTML spans:


https://quarto.org/docs/authoring/markdown-basics.html#sec-divs-and-spans
Choose a username appropriate to employers since your free website will be at yourusername.github.io:
The free website’s repo name must be yourusername.github.io
Turn on “Add README” and hit “Create repository”:
What you should see now:
This is just the README.md which you can modify.
Your website’s homepage would look even better if you upload a nice webpage named index.html.
format:
html:
output-file: "index.html"
Why? index.html ensures a clean URL: a server pointed at a folder automatically reads the index.html of that folder. So your html file adopts your folder’s name.
Now render your .qmd in RStudio with “Render” button or in VSCode with quarto render yourfile.qmd in terminal.
Take your project folder including the _files folder which contains external dependencies (CSS, JS, etc.) to upload to GitHub: