Level-two and below headings…
…are all contained in the same section.
Example text.
You may include any number of plots in a section.
library(ggplot2)
library(maps)
library(plotly)
## Warning: package 'plotly' was built under R version 4.3.3
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
library(tidyverse)
## Warning: package 'readr' was built under R version 4.3.2
## Warning: package 'purrr' was built under R version 4.3.2
## Warning: package 'dplyr' was built under R version 4.3.3
## Warning: package 'stringr' was built under R version 4.3.3
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr 1.1.4 ✔ readr 2.1.4
## ✔ forcats 1.0.0 ✔ stringr 1.5.1
## ✔ lubridate 1.9.2 ✔ tibble 3.2.1
## ✔ purrr 1.0.2 ✔ tidyr 1.3.0
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks plotly::filter(), stats::filter()
## ✖ dplyr::lag() masks stats::lag()
## ✖ purrr::map() masks maps::map()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
# Get map data for Texas
tx_map <- map_data("state")
tx_map <- tx_map[tx_map$region == "texas", ]
# Plot Texas
p <- ggplot(tx_map, aes(x = long, y = lat, group = group)) +
geom_polygon(fill = "lightblue", color = "black") +
coord_fixed(1.3) +
theme_minimal() +
labs(title = "Map of Texas")
p %>% plotly::ggplotly()
Local news reported a giant inflatable rubber duck rolling down the street of Des Moines, where this package is conceived.
You should call rolldown::scrollama_setup()
at the end of a document. Turn off the debug
option to get rid of the horizontal line on the page, and you probably also want echo=FALSE
on this code chunk:
rolldown::scrollama_setup(
list(step = '.level1', offset = .2, debug = TRUE)
)