-
Notifications
You must be signed in to change notification settings - Fork 1
/
template_OHID_HTML.qmd
93 lines (58 loc) · 1.62 KB
/
template_OHID_HTML.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
title: Untitled
output-file: OHID_HTML_example
format:
OHID-html: default
execute:
echo: false
warning: false
---
This template is an example of how to write a report in the **OHID** style.
You can edit this file and press the `Render` button to produce a HTML document.
When using the OHID template, use one hash symbol for headings and two hash
symbols for subheadings and so on. Up to five levels of heading can be used (five
hash symbols).
You can learn more about controlling the appearance of HTML output on the [quarto website](https://quarto.org/docs/output-formats/html-basics.html).
# A heading
Some text here....
## A subheading
Text under a subheading...
# Further heading
More text here...
## A Subheading
Different text here...
### Third level subheading
#### Fourth level subheading
Some text here...
##### Fifth level subheading
## Another Subheading
More text here...
# Quarto HTML tips
Example of adding a table using the htmlTable package.
```{r Data table}
library(htmlTable)
htmlTable(head(iris, 10), rnames = FALSE)
```
Example of producing an interactive chart using the plotly package.
```{r Chart}
library(plotly)
fig <- plot_ly(
data = iris,
x = ~Sepal.Length,
y = ~Petal.Length
) |>
config(displaylogo = FALSE,
modeBarButtons = list(list("toImage")),
toImageButtonOptions = list(format = "svg",
filename = "Chart",
width = 900,
height = 640))
fig
```
Example of producing a tabset.
::: panel-tabset
# Tab 1
Text on tab 1.
# Tab 2
Text on tab 2.
:::