This 'minimal flipbook' template has a couple of classic examples to get you building your first flipbooks!
This 'minimal flipbook' template has a couple of classic examples to get you building your first flipbooks!
flipbooks are code-movies. The frames of the movies are slides. Here we use the R package {xaringan} to create a remark.js slideshow.
This 'minimal flipbook' template has a couple of classic examples to get you building your first flipbooks!
flipbooks are code-movies. The frames of the movies are slides. Here we use the R package {xaringan} to create a remark.js slideshow.
Slide breaks are indicated with ---
(be careful trailing white space is not allowed)
This 'minimal flipbook' template has a couple of classic examples to get you building your first flipbooks!
flipbooks are code-movies. The frames of the movies are slides. Here we use the R package {xaringan} to create a remark.js slideshow.
Slide breaks are indicated with ---
(be careful trailing white space is not allowed)
flipbookr's chunk_reveal()
disassembles a single code chunk and creates the "build" of multiple partial-code chunks on different slides (the --- is automatically generated for you too).
This 'minimal flipbook' template has a couple of classic examples to get you building your first flipbooks!
flipbooks are code-movies. The frames of the movies are slides. Here we use the R package {xaringan} to create a remark.js slideshow.
Slide breaks are indicated with ---
(be careful trailing white space is not allowed)
flipbookr's chunk_reveal()
disassembles a single code chunk and creates the "build" of multiple partial-code chunks on different slides (the --- is automatically generated for you too).
We use chunk_reveal()
it 'inline', not in a code chunk.
This 'minimal flipbook' template has a couple of classic examples to get you building your first flipbooks!
flipbooks are code-movies. The frames of the movies are slides. Here we use the R package {xaringan} to create a remark.js slideshow.
Slide breaks are indicated with ---
(be careful trailing white space is not allowed)
flipbookr's chunk_reveal()
disassembles a single code chunk and creates the "build" of multiple partial-code chunks on different slides (the --- is automatically generated for you too).
We use chunk_reveal()
it 'inline', not in a code chunk.
Let's start!
cars
speed dist1 4 22 4 103 7 44 7 225 8 166 9 107 10 188 10 269 10 3410 11 1711 11 2812 12 1413 12 2014 12 2415 12 2816 13 2617 13 3418 13 3419 13 4620 14 2621 14 3622 14 6023 14 8024 15 2025 15 2626 15 5427 16 3228 16 4029 17 3230 17 4031 17 5032 18 4233 18 5634 18 7635 18 8436 19 3637 19 4638 19 6839 20 3240 20 4841 20 5242 20 5643 20 6444 22 6645 23 5446 24 7047 24 9248 24 9349 24 12050 25 85
cars %>% filter(speed > 4)
speed dist1 7 42 7 223 8 164 9 105 10 186 10 267 10 348 11 179 11 2810 12 1411 12 2012 12 2413 12 2814 13 2615 13 3416 13 3417 13 4618 14 2619 14 3620 14 6021 14 8022 15 2023 15 2624 15 5425 16 3226 16 4027 17 3228 17 4029 17 5030 18 4231 18 5632 18 7633 18 8434 19 3635 19 4636 19 6837 20 3238 20 4839 20 5240 20 5641 20 6442 22 6643 23 5444 24 7045 24 9246 24 9347 24 12048 25 85
cars %>% filter(speed > 4) %>% ggplot()
cars %>% filter(speed > 4) %>% ggplot() + aes(x = speed)
cars %>% filter(speed > 4) %>% ggplot() + aes(x = speed) + aes(y = dist)
cars %>% filter(speed > 4) %>% ggplot() + aes(x = speed) + aes(y = dist) + geom_point( alpha = .8, color = "blue" )
cars %>% filter(speed > 4) %>% ggplot() + aes(x = speed) + aes(y = dist) + geom_point( alpha = .8, color = "blue" ) + aes(size = speed)
ggplot(data = cars) + aes(x = speed) + aes(y = dist) + geom_point(size = 8, shape = 21, alpha = .9, color = "snow") + aes(fill = speed) + scale_fill_viridis_c(option = "magma")
ggplot(data = cars) + aes(x = speed) + aes(y = dist) + geom_point(size = 8, shape = 21, alpha = .9, color = "snow") + aes(fill = speed) + scale_fill_viridis_c(option = "cividis")
ggplot(data = cars) + aes(x = speed) + aes(y = dist) + geom_point(size = 8, shape = 21, alpha = .9, color = "snow") + aes(fill = speed) + scale_fill_viridis_c(option = "plasma")
cars %>% sample_frac(size = 1, replace = TRUE) %>% ggplot() + aes(x = speed) + aes(y = dist) + geom_count( alpha = .7, color = "blue", size = 4 ) + geom_smooth(method = lm, se = FALSE) + coord_cartesian(xlim = range(cars$speed), ylim = range(cars$dist)) + theme(legend.position = c(.9, .2))
cars %>% sample_frac(size = 1, replace = TRUE) %>% ggplot() + aes(x = speed) + aes(y = dist) + geom_count( alpha = .7, color = "blue", size = 4 ) + geom_smooth(method = lm, se = FALSE) + coord_cartesian(xlim = range(cars$speed), ylim = range(cars$dist)) + theme(legend.position = c(.9, .2))
cars %>% sample_frac(size = 1, replace = TRUE) %>% ggplot() + aes(x = speed) + aes(y = dist) + geom_count( alpha = .7, color = "blue", size = 4 ) + geom_smooth(method = lm, se = FALSE) + coord_cartesian(xlim = range(cars$speed), ylim = range(cars$dist)) + theme(legend.position = c(.9, .2))
cars %>% sample_frac(size = 1, replace = TRUE) %>% ggplot() + aes(x = speed) + aes(y = dist) + geom_count( alpha = .7, color = "blue", size = 4 ) + geom_smooth(method = lm, se = FALSE) + coord_cartesian(xlim = range(cars$speed), ylim = range(cars$dist)) + theme(legend.position = c(.9, .2))
cars %>% sample_frac(size = 1, replace = TRUE) %>% ggplot() + aes(x = speed) + aes(y = dist) + geom_count( alpha = .7, color = "blue", size = 4 ) + geom_smooth(method = lm, se = FALSE) + coord_cartesian(xlim = range(cars$speed), ylim = range(cars$dist)) + theme(legend.position = c(.9, .2))
This minimal flipbook assumes you are online when you build and view. It is going to find the most recent remark.js info online.
xaringan/remark.js slideshows are not self contained, single file slide shows. Make sure you ship all the associated files that are created to display your flipbooks/slideshows. I like to push .html and associated files to github repository and use Github Pages to host for beyond local sharing. :-)
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
Esc | Back to slideshow |