• Stars
    star
    195
  • Rank 198,903 (Top 4 %)
  • Language
    CSS
  • License
    Other
  • Created almost 5 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Presenting code step-by-step and side-by-side with its output

The flipbookr package

“Flipbooks” present side-by-side, aligned, incremental code-output evolution via automated code parsing and reconstruction. Like physical flipbooks, they let the ‘reader’ watch a scene evolve at their own pace. Flipbooks seek to reduce the guesswork involved between code and its behavior by presenting substeps of a coding pipeline; the reader of a flipbook observes the partial code that is used to create “A.1”, “A.2”, “A.3” etc. all the way up to “B”.

Here’s the ‘minimal flipbook’ template that’s available with the package:

View flipbook in a new tab

The create a flipbook isn’t hard because parsing and reconstruction of code pipelines into substeps is automated!

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).

Check out the details on how to do this in this doublecrocheted version of the same flipbook (quotes the .Rmd source on some slides).

Installation

You can install the development version of flipbookr with devtools as follows:

devtools::install_github("EvaMaeRey/flipbookr")

You will most likely use this package with the rmarkdown presentation tool, Xaringan, which is available on CRAN:

install.packages("xaringan")

Template

The package includes several templates for building a flipbook that demonstrates various flipbooking modes.

The templates can be accessed from within RStudio. For example: New File -> RMarkdown -> From Template -> A Minimal Flipbook. The templates are:

  • A Minimal Flipbook
  • Most Flipbookr Features, preview output
  • A Python Flipbook

How it works:

Here’s a flipbook going through some of the internal flipbookr functions.

More Repositories

1

ggplot_flipbook

This is a flipbook that builds up plots with ggplot2.
HTML
154
star
2

ggxmean

R
61
star
3

tidyverse_in_action

This is a flipbook that walks through data wrangling and plotting steps using the tidyverse.
HTML
49
star
4

ggstamp

stamp_* as an API for annotation layers
R
40
star
5

little_flipbooks_library

HTML
35
star
6

easy-geom-recipes

JavaScript
25
star
7

ggcalendar

x and y position as days in month
R
22
star
8

from_raw_data_to_paper_and_presentation

This contains examples of how to implement a reproducible workflow using .Rmd files, from raw data to a research paper as well as presentation materials (slides and poster).
HTML
19
star
9

ggplot2_grammar_guide

a kind of formal introduction to ggplot2 in a flipbook
HTML
14
star
10

tidypivot

Declarative group-wise count and compute, describing your target table
R
11
star
11

doublecrochet

Show .Rmd source paired with output!
JavaScript
8
star
12

ggpie

easily make pie charts within the grammar of graphics framework and ggplot2
R
7
star
13

xaringanPrinter

convert xaringan/remark.js slides to Xaringan
R
7
star
14

ggols

visual expositions of simpler linear models
CSS
7
star
15

slowggplotting

This is a book project on plotting with ggplot for the #Makeovermonday initiative.
HTML
6
star
16

statistics

HTML
5
star
17

mytidytuesday

little demos with tidytuesday data
HTML
5
star
18

data_cleaning_flipbook

This is a flipbook that walks through some data cleaning.
HTML
4
star
19

ggcirclepack

Experimental; write up for ggplot2 extenders meet up
R
4
star
20

everyday_ggplot2_extension

a practical approach to ggplot2 extension
4
star
21

ggverbatim

tabular data to tabular viz
R
3
star
22

ggnaturalearth

putting ne geometries in geoms - a test of ggnorthcarolina template repo
R
3
star
23

tables

HTML
2
star
24

titanic.complete

Data from Wikipedia Titantic Passengers and Crew
HTML
2
star
25

easing_gganimate

CSS
2
star
26

flipbooks_for_biologists

for biologists!
2
star
27

ma206_tidyverse_code_movies

HTML
2
star
28

codeexplode

explodes code
CSS
2
star
29

ggedgelist

Use edgelist flat files as inputs to start building network visualizations with ggraph
HTML
2
star
30

ggtedious

a demo package for messages, warnings, errors and test in ggplot2 extension "Testing your code can be painful and tedious, but it greatly increases the quality of your code."
2
star
31

tidytuesday_walk_through

Walking through some cool #tidytuesday submissions
HTML
2
star
32

ay_2023_2_advanced_individual_study

HTML
2
star
33

gglobalclocks

global clocks!
R
2
star
34

tabylextra

For flattening, lengthening janitor tabyls
R
2
star
35

ggchalkboard

a chalkboard theme w chalky geom defaults
R
2
star
36

flipbooks

HTML
2
star
37

viztoc

R
2
star
38

ggwipe

remove stat and geom layers from plot; return the last plot but wiped
R
2
star
39

ggsmoothfit

extending stat_smooth to return fitted values and residuals
R
2
star
40

ols_app

Shiny app for manually finding the sum of squared residuals by adjusting an intercept and slope.
R
1
star
41

rstudio_education_blog

HTML
1
star
42

ggfips

A new approach to ggplot spatial APIs as demonstrated with with county fips codes
R
1
star
43

tiny_flipbooks

A place for very short examples
CSS
1
star
44

ggdirect

Some functions that do more calculation in the background to get you there faster -- especially focusing on direct labeling.
R
1
star
45

evamaerey

Personal website of Gina Reynolds
HTML
1
star
46

ggbroom

estimate w/ broom; visualize with ggplot2
1
star
47

tidy.correlates.of.war

HTML
1
star
48

ggsample

spin off of ggxmean, educational, random sampling, bootstrapping etc
R
1
star
49

data_manipulation

HTML
1
star
50

tidytitanic

flat versions of the r titanic data
R
1
star
51

ggpivot

R
1
star
52

ggquiet

R
1
star
53

ggextend

a toy package with examples of ggplot extension functions
R
1
star
54

ay_2022_2_advanced_individual_study-

Here, laying out some objectives for independent study, MA489!
HTML
1
star
55

ggmemory

parsing and presenting viz and manipulation code pipeline history using xaringan and flipbookr
CSS
1
star
56

tableau

HTML
1
star
57

ggbrasil

R
1
star
58

ggplot2-extension-cookbook

An examples-based guide to ggplot2 extension strategies
1
star
59

madlibs

For replacing words with blanks, or partial replacement of word with blanks
CSS
1
star
60

ind2cat

Concisely recode indicator variables to categories
R
1
star
61

tidytuesday_colorswatches

leaf through tidytuesday datasets
HTML
1
star
62

codequote4shiny

Return R code that will produce plot/df/text in a shiny app. For package demos and teaching purposes
1
star