plt <- ggplot2::ggplot(ggplot2::mpg, ggplot2::aes(displ, cty)) +
ggplot2::geom_point()
plt
November 26, 2020
Testing quarto / Rmarkdown features.
R Core Team (2020)
Example from the mathjax demo:
When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\]
If I have a random $ and another $ in my text.
plt <- ggplot2::ggplot(ggplot2::mpg, ggplot2::aes(displ, cty)) +
ggplot2::geom_point()
plt
print("hello world")[1] "hello world"
w and s move the left paddle, o and l move the right paddle.
DT::datatable(head(iris))print("test")[1] "test"
plt <- ggplot2::ggplot(ggplot2::mpg, ggplot2::aes(displ, cty)) +
ggplot2::geom_point()
plotly::ggplotly(plt)However, while this options brings back plotly, it also disables math rendering for this document on the site.
\[sd = \sqrt{\frac{\sum_{i=0}^{n}{(x_i-\bar x)^2}}{(n-1)} }\]
graph TB A-->B A-->C C-->E B-->D C-->D D-->F E-->F
---
title: "demonstration"
excerpt: |
Testing Rmarkdown features.
date: 11-26-2020
image: ./featured-1.png
bibliography: references.bib
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE,
fig.path = "./")
```
# Tests
Testing quarto / Rmarkdown features.
## Citations
@rcoreteamLanguageEnvironmentStatistical2020
## Math
Example from the [mathjax demo](https://www.mathjax.org/#demo):
When $a \ne 0$, there are two solutions to `\(ax^2 + bx + c = 0\)` and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
If I have a random $ and another $ in my text.
## Preview Image
```{r featured}
plt <- ggplot2::ggplot(ggplot2::mpg, ggplot2::aes(displ, cty)) +
ggplot2::geom_point()
plt
```
## Details
<details>
```{r}
print("hello world")
```
</details>
## p5
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.1/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.1/addons/p5.sound.min.js"></script>
<link rel="stylesheet" type="text/css" href="p5_style.css">
<script src="sketch.js"></script>
<script src="puck.js"></script>
<script src="paddle.js"></script>
**w** and **s** move the left paddle, **o** and **l** move the right paddle.
<div id="sketch-holder">
</div>
## DT
```{r}
DT::datatable(head(iris))
```
## Plotly
```{r}
print("test")
plt <- ggplot2::ggplot(ggplot2::mpg, ggplot2::aes(displ, cty)) +
ggplot2::geom_point()
plotly::ggplotly(plt)
```
However, while this options brings back plotly,
it also disables math rendering for this document on the site.
## Math
$$sd = \sqrt{\frac{\sum_{i=0}^{n}{(x_i-\bar x)^2}}{(n-1)} }$$
## Mermaid
```{mermaid}
graph TB
A-->B
A-->C
C-->E
B-->D
C-->D
D-->F
E-->F
```