Skip to content

Commit d15998e

Browse files
committed
convert chunk headers
1 parent abd56a1 commit d15998e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.Rmd

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ output: github_document
44

55
<!-- README.md is generated from README.Rmd. Please edit that file -->
66

7-
```{r, echo = FALSE}
7+
```{r}
8+
#| echo: false
89
knitr::opts_chunk$set(
910
collapse = TRUE,
1011
comment = "#>",
@@ -26,7 +27,8 @@ ggplot2 is a system for declaratively creating graphics, based on [The Grammar o
2627

2728
## Installation
2829

29-
```{r, eval = FALSE}
30+
```{r}
31+
#| eval: false
3032
# The easiest way to get ggplot2 is to install the whole tidyverse:
3133
install.packages("tidyverse")
3234
@@ -46,7 +48,8 @@ pak::pak("tidyverse/ggplot2")
4648

4749
It's hard to succinctly describe how ggplot2 works because it embodies a deep philosophy of visualisation. However, in most cases you start with `ggplot()`, supply a dataset and aesthetic mapping (with `aes()`). You then add on layers (like `geom_point()` or `geom_histogram()`), scales (like `scale_colour_brewer()`), faceting specifications (like `facet_wrap()`) and coordinate systems (like `coord_flip()`).
4850

49-
```{r example}
51+
```{r}
52+
#| label: example
5053
#| fig.alt: "Scatterplot of engine displacement versus highway miles per
5154
#| gallon, for 234 cars coloured by 7 'types' of car. The displacement and miles
5255
#| per gallon are inversely correlated."

0 commit comments

Comments
 (0)