flowchart LR
A[Hard edge] --> B(Round edge)
B --> C{Decision}
C --> D[Result one]
C --> E[Result two]
Citations
- Citation: Wickham (2014)
Code annotations
library(tidyverse)
library(palmerpenguins)
1penguins |>
2 mutate(
bill_ratio = bill_depth_mm / bill_length_mm,
bill_area = bill_depth_mm * bill_length_mm
)
- 1
-
Take
penguins, and then, - 2
- add new columns for the bill ratio and bill area.
Code filename
matplotlib.py
import matplotlib.pyplot as plt
plt.plot([1,23,2,4])
plt.show()Callout Blocks
Note that there are five types of callouts, including: note,tip, warning, caution and important.
Callouts provide a simple way to attract attention, for example, to this warning.
The callout heading is provided by the callout type, with the expected heading (i.e., Note, Warning, Important, Tip, or Caution).
This is an example of a callout with a title. Providing a callout heading is optional.
This is an example of a caution.
A simple callout.
Diagrams
HTML widgets
Keyboard
- Keyboard shortcut: Shift-Ctrl-PShift-Ctrl-P
Lists
-
item 2
Continued (indent 4 spaces)
Another example
ordered list
-
item 2
print("Hello, World!")- sub-sub-item 1
A task list
A definition
- term
-
definition
Footnotes
Here is a footnote reference,1 and another.2
This paragraph won’t be part of the note, because it isn’t indented.
Here is an inline note.3
Equations
inline math: E = mc^{2}
display math:
E = mc^{2}
Other blocks
Spaces and newlines
are preserved
This text is smallcaps
This text is underlined
This text is highlighted
endash: –
emdash: —
Shortcodes
The subtitle of this document is as follows: Using this for shortcodes
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sagittis posuere ligula sit amet lacinia. Duis dignissim pellentesque magna, rhoncus congue sapien finibus mollis. Ut eu sem laoreet, vehicula ipsum in, convallis erat. Vestibulum magna sem, blandit pulvinar augue sit amet, auctor malesuada sapien. Nullam faucibus leo eget eros hendrerit, non laoreet ipsum lacinia. Curabitur cursus diam elit, non tempus ante volutpat a. Quisque hendrerit blandit purus non fringilla. Integer sit amet elit viverra ante dapibus semper. Vestibulum viverra rutrum enim, at luctus enim posuere eu. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
A section
Here we define a plot.
Note the following plot

Another example
We will define some values here.
The output of that inline code cell is some code. Etc.
Figures
Video
In Figure 2…
