class: inverse, bottom background-image: url(https://plus.unsplash.com/premium_photo-1681426592021-25ccd822c96a?q=80&w=2532&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D) background-size: cover # .Large[viz- and vocab-first intro to stats curricula: leveraging ggplot2 extension] ## .small[gg x ISI x EAPOST] ## .small[bit.ly/gg-eapost] #### .tiny[Dr. Evangeline Reynolds | 2026-11-20 | EAPOST webinar, Image credit: Getty Images for Upsplash] ??? --> <!-- --> --- # So glad to be in *real* conversation with EAPOST/ISI folks! -- <img src="images/clipboard-661140228.png" width="20%" /> Dr. Jennifer McNally, Dr. Laura Callis 'Inclusive Statistics' this summer... --- Now... Adjuncting π€ at DU... A little about me and teaching, viz, and programming background: - 2018-2020 - University of Denver - 2020-2023 - West Point - 2023 - present back in Denver... --- # DU 2018-2020: quantitative methodology - 2018-2020 - University of Denver, Visiting Teaching Assistant Professor  -- ## Spring 2020 'Can you teach a data viz graduate level class?' George F. DeMartino, Ilene Grabel --- ## 'A ggplot2 grammar guide': <img src="images/clipboard-795892238.png" width="45%" /> --- ### People love ggplot2 and the grammar/incrementalism: <img src="images/clipboard-3370603988.png" width="50%" /> --- # West Point Fall 2020-2023 - 2020-2023 - Institutional Analytics and Math Intro to Statistics and Probability Instructor, Institutional Research Data Scientist... > ## The text differs from traditional texts in both content and pedagogy. Statistical inference is introduced using simulation-based methods in Chapter 1. This allows students to intuitively understand the process of inference from the very beginning of their course. --- # A 'Cathedral of Statistics' <img src="images/clipboard-2945416049.png" width="50%" /> > 'Statistics Curricula should reveal the beautiful cathedral of Statistics.' paraphrase ... George Cobb (paraphrase) --- # ISI is GAISE-grounded EAPOST: 'We are aiming for substantial impact on instruction in the art and practice of statistical thinking, aligned with the American Statistical Association's Guidelines for Assessment and Instruction in Statistics Education (GAISE) and current research on teaching and learning in statistics. ' <https://sites.google.com/view/eaapost/project-overview>  --- > 'Some instructors may train students in using a specific software package, but mastery of advanced programming skills should not be allowed to crowd out data analysis skills or statistical thinking.' ---  --- # But, I was missing gg code and grammar of graphics π’ -- > # "**I just don't see how a world that makes such wonderful things could be bad."** <!-- <img src="images/clipboard-2506441341.png" width="50%" /> --> --- Can we have it all? Vis + Code + 'not crowd out statistical thinking'... --- ## Code + viz? \| grammar + viz? \| language + viz? Because writing things down, feels very grounding. Having verbal expression and visual expression side by side, coordinated feels like a superpower. <img src="images/clipboard-1045303388.png" width="50%" /> --- <img src="images/clipboard-676654223.png" width="50%" /> --- <img src="images/clipboard-680630620.png" width="50%" /> --- And ggplot2 has extraordinary 'write down your narrative' capabilities --- count: false ## BBC, Hans Rosling 200 years in 4 minutes <img src="eapost-talk-2026-november_files/figure-html/hans_auto_01_output-1.png" width="576" /> --- count: false ## BBC, Hans Rosling 200 years in 4 minutes <img src="eapost-talk-2026-november_files/figure-html/hans_auto_02_output-1.png" width="576" /> --- count: false ## BBC, Hans Rosling 200 years in 4 minutes <img src="eapost-talk-2026-november_files/figure-html/hans_auto_03_output-1.png" width="576" /> --- count: false ## BBC, Hans Rosling 200 years in 4 minutes <img src="eapost-talk-2026-november_files/figure-html/hans_auto_04_output-1.png" width="576" /> --- count: false ## BBC, Hans Rosling 200 years in 4 minutes <img src="eapost-talk-2026-november_files/figure-html/hans_auto_05_output-1.png" width="576" /> --- count: false ## BBC, Hans Rosling 200 years in 4 minutes <img src="eapost-talk-2026-november_files/figure-html/hans_auto_06_output-1.png" width="576" /> <style> .panel1-hans-auto { color: black; width: 99%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel2-hans-auto { color: black; width: NA%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel3-hans-auto { color: black; width: NA%; hight: 33%; float: left; padding-left: 1%; font-size: 80% } </style> --- count: false .panel1-gapminder-auto[ ``` r *gapminder::gapminder ``` ] .panel2-gapminder-auto[ ``` # A tibble: 1,704 Γ 6 country continent year lifeExp pop gdpPercap <fct> <fct> <int> <dbl> <int> <dbl> 1 Afghanistan Asia 1952 28.8 8425333 779. 2 Afghanistan Asia 1957 30.3 9240934 821. 3 Afghanistan Asia 1962 32.0 10267083 853. 4 Afghanistan Asia 1967 34.0 11537966 836. 5 Afghanistan Asia 1972 36.1 13079460 740. 6 Afghanistan Asia 1977 38.4 14880372 786. 7 Afghanistan Asia 1982 39.9 12881816 978. 8 Afghanistan Asia 1987 40.8 13867957 852. 9 Afghanistan Asia 1992 41.7 16317921 649. 10 Afghanistan Asia 1997 41.8 22227415 635. # βΉ 1,694 more rows ``` ] --- count: false .panel1-gapminder-auto[ ``` r gapminder::gapminder |> * filter(year == 2002) ``` ] .panel2-gapminder-auto[ ``` # A tibble: 142 Γ 6 country continent year lifeExp pop gdpPercap <fct> <fct> <int> <dbl> <int> <dbl> 1 Afghanistan Asia 2002 42.1 25268405 727. 2 Albania Europe 2002 75.7 3508512 4604. 3 Algeria Africa 2002 71.0 31287142 5288. 4 Angola Africa 2002 41.0 10866106 2773. 5 Argentina Americas 2002 74.3 38331121 8798. 6 Australia Oceania 2002 80.4 19546792 30688. 7 Austria Europe 2002 79.0 8148312 32418. 8 Bahrain Asia 2002 74.8 656397 23404. 9 Bangladesh Asia 2002 62.0 135656790 1136. 10 Belgium Europe 2002 78.3 10311970 30486. # βΉ 132 more rows ``` ] --- count: false .panel1-gapminder-auto[ ``` r gapminder::gapminder |> filter(year == 2002) |> * ggplot() ``` ] .panel2-gapminder-auto[ <img src="eapost-talk-2026-november_files/figure-html/gapminder_auto_03_output-1.png" width="576" /> ] --- count: false .panel1-gapminder-auto[ ``` r gapminder::gapminder |> filter(year == 2002) |> ggplot() + * ggchalkboard:::theme_rosling() ``` ] .panel2-gapminder-auto[ <img src="eapost-talk-2026-november_files/figure-html/gapminder_auto_04_output-1.png" width="576" /> ] --- count: false .panel1-gapminder-auto[ ``` r gapminder::gapminder |> filter(year == 2002) |> ggplot() + ggchalkboard:::theme_rosling() + * aes(y = lifeExp) ``` ] .panel2-gapminder-auto[ <img src="eapost-talk-2026-november_files/figure-html/gapminder_auto_05_output-1.png" width="576" /> ] --- count: false .panel1-gapminder-auto[ ``` r gapminder::gapminder |> filter(year == 2002) |> ggplot() + ggchalkboard:::theme_rosling() + aes(y = lifeExp) + * aes(x = gdpPercap) ``` ] .panel2-gapminder-auto[ <img src="eapost-talk-2026-november_files/figure-html/gapminder_auto_06_output-1.png" width="576" /> ] --- count: false .panel1-gapminder-auto[ ``` r gapminder::gapminder |> filter(year == 2002) |> ggplot() + ggchalkboard:::theme_rosling() + aes(y = lifeExp) + aes(x = gdpPercap) + * geom_point() ``` ] .panel2-gapminder-auto[ <img src="eapost-talk-2026-november_files/figure-html/gapminder_auto_07_output-1.png" width="576" /> ] --- count: false .panel1-gapminder-auto[ ``` r gapminder::gapminder |> filter(year == 2002) |> ggplot() + ggchalkboard:::theme_rosling() + aes(y = lifeExp) + aes(x = gdpPercap) + geom_point() + * aes(color = continent) ``` ] .panel2-gapminder-auto[ <img src="eapost-talk-2026-november_files/figure-html/gapminder_auto_08_output-1.png" width="576" /> ] --- count: false .panel1-gapminder-auto[ ``` r gapminder::gapminder |> filter(year == 2002) |> ggplot() + ggchalkboard:::theme_rosling() + aes(y = lifeExp) + aes(x = gdpPercap) + geom_point() + aes(color = continent) + * aes(size = pop) ``` ] .panel2-gapminder-auto[ <img src="eapost-talk-2026-november_files/figure-html/gapminder_auto_09_output-1.png" width="576" /> ] <style> .panel1-gapminder-auto { color: black; width: 38.6060606060606%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel2-gapminder-auto { color: black; width: 59.3939393939394%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel3-gapminder-auto { color: black; width: NA%; hight: 33%; float: left; padding-left: 1%; font-size: 80% } </style> --- count: false # coordinated visual and verbal -> limbic? .panel1-limbic_bliss-auto[ ``` r *library(ggregions) ``` ] .panel2-limbic_bliss-auto[ ] --- count: false # coordinated visual and verbal -> limbic? .panel1-limbic_bliss-auto[ ``` r library(ggregions) *set_regions(brain_lobes_ref) ``` ] .panel2-limbic_bliss-auto[ ] --- count: false # coordinated visual and verbal -> limbic? .panel1-limbic_bliss-auto[ ``` r library(ggregions) set_regions(brain_lobes_ref) *ggplot() ``` ] .panel2-limbic_bliss-auto[ <img src="eapost-talk-2026-november_files/figure-html/limbic_bliss_auto_03_output-1.png" width="576" /> ] --- count: false # coordinated visual and verbal -> limbic? .panel1-limbic_bliss-auto[ ``` r library(ggregions) set_regions(brain_lobes_ref) ggplot() + * stamp_region() ``` ] .panel2-limbic_bliss-auto[ <img src="eapost-talk-2026-november_files/figure-html/limbic_bliss_auto_04_output-1.png" width="576" /> ] --- count: false # coordinated visual and verbal -> limbic? .panel1-limbic_bliss-auto[ ``` r library(ggregions) set_regions(brain_lobes_ref) ggplot() + stamp_region() + * stamp_region(keep = "Occipital", * fill = "cornflowerblue") ``` ] .panel2-limbic_bliss-auto[ <img src="eapost-talk-2026-november_files/figure-html/limbic_bliss_auto_05_output-1.png" width="576" /> ] --- count: false # coordinated visual and verbal -> limbic? .panel1-limbic_bliss-auto[ ``` r library(ggregions) set_regions(brain_lobes_ref) ggplot() + stamp_region() + stamp_region(keep = "Occipital", fill = "cornflowerblue") + * stamp_region(keep = "Temporal", * fill = "coral3") ``` ] .panel2-limbic_bliss-auto[ <img src="eapost-talk-2026-november_files/figure-html/limbic_bliss_auto_06_output-1.png" width="576" /> ] --- count: false # coordinated visual and verbal -> limbic? .panel1-limbic_bliss-auto[ ``` r library(ggregions) set_regions(brain_lobes_ref) ggplot() + stamp_region() + stamp_region(keep = "Occipital", fill = "cornflowerblue") + stamp_region(keep = "Temporal", fill = "coral3") + * stamp_region(keep = "Limbic", * fill = "goldenrod") ``` ] .panel2-limbic_bliss-auto[ <img src="eapost-talk-2026-november_files/figure-html/limbic_bliss_auto_07_output-1.png" width="576" /> ] <style> .panel1-limbic_bliss-auto { color: black; width: 38.6060606060606%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel2-limbic_bliss-auto { color: black; width: 59.3939393939394%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel3-limbic_bliss-auto { color: black; width: NA%; hight: 33%; float: left; padding-left: 1%; font-size: 80% } </style> --- ## ggplot2 lets us *transcribe* statistical narratives, -- ## record logic of visually conveyed ideas... -- ## our trains of thought -- # π€―π€―π€―π€―π€―π€― --- ### Should we reorganize our conversations into a haiku? -- > 'Graphical Poems?' Hadley Wickham 2010 "A layered grammar of graphics' -- ``` r gapminder::gapminder |> filter(year == 2002) |> * ggplot(mapping = aes( y = lifeExp, x = gdpPercap, color = continent, size = pop * )) + geom_point() + ggchalkboard:::theme_rosling() ``` <img src="eapost-talk-2026-november_files/figure-html/unnamed-chunk-5-1.png" width="30%" /> --- 'A question that I'd wanted to ask ... was about this syntax...' ``` r ggplot(cars) + * aes(x = dist) + geom_histogram() ``` <img src="eapost-talk-2026-november_files/figure-html/unnamed-chunk-6-1.png" width="30%" /> -- > 'Does it still make you cringe? Or don't care anymore? To me, ggplot2's overlooked superpower (but I find myself still self conscious about using it). ' --- > 'I still don't like it :)' - Hadley Wickham, creator of ggplot2, July 2026 --- ggplot2 excels in: -- # Temporal Fidelity -- It's ... -- ## ... process preserving. -- ## ... conversation recording. -- ## ... idea tracing/transcribing. --- class: inverse # There's power in the conversation... π£οΈπ£οΈ -- # But... ISI/EAPSOST envisions a *cathedral of statistics* ... -- # *base* ggplot2, while fundamentally conversational, is not enough ... --- count: false # Teach OLS with Base ggplot? π«€ .panel1-linear_modeling-auto[ ``` r *ggplot(mtcars) ``` ] .panel2-linear_modeling-auto[ <img src="eapost-talk-2026-november_files/figure-html/linear_modeling_auto_01_output-1.png" width="576" /> ] --- count: false # Teach OLS with Base ggplot? π«€ .panel1-linear_modeling-auto[ ``` r ggplot(mtcars) + * aes(wt, mpg) ``` ] .panel2-linear_modeling-auto[ <img src="eapost-talk-2026-november_files/figure-html/linear_modeling_auto_02_output-1.png" width="576" /> ] --- count: false # Teach OLS with Base ggplot? π«€ .panel1-linear_modeling-auto[ ``` r ggplot(mtcars) + aes(wt, mpg) + * geom_point() ``` ] .panel2-linear_modeling-auto[ <img src="eapost-talk-2026-november_files/figure-html/linear_modeling_auto_03_output-1.png" width="576" /> ] --- count: false # Teach OLS with Base ggplot? π«€ .panel1-linear_modeling-auto[ ``` r ggplot(mtcars) + aes(wt, mpg) + geom_point() + * geom_smooth(method = lm) ``` ] .panel2-linear_modeling-auto[ <img src="eapost-talk-2026-november_files/figure-html/linear_modeling_auto_04_output-1.png" width="576" /> ] --- count: false # Teach OLS with Base ggplot? π«€ .panel1-linear_modeling-auto[ ``` r ggplot(mtcars) + aes(wt, mpg) + geom_point() + geom_smooth(method = lm) + * stat_smooth(method = lm, * geom = "point", * xseq = mtcars$wt, * color = "blue") ``` ] .panel2-linear_modeling-auto[ <img src="eapost-talk-2026-november_files/figure-html/linear_modeling_auto_05_output-1.png" width="576" /> ] --- count: false # Teach OLS with Base ggplot? π«€ .panel1-linear_modeling-auto[ ``` r ggplot(mtcars) + aes(wt, mpg) + geom_point() + geom_smooth(method = lm) + stat_smooth(method = lm, geom = "point", xseq = mtcars$wt, color = "blue") + * geom_smooth(method = lm, * formula = y ~ 1) ``` ] .panel2-linear_modeling-auto[ <img src="eapost-talk-2026-november_files/figure-html/linear_modeling_auto_06_output-1.png" width="576" /> ] <style> .panel1-linear_modeling-auto { color: black; width: 38.6060606060606%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel2-linear_modeling-auto { color: black; width: 59.3939393939394%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel3-linear_modeling-auto { color: black; width: NA%; hight: 33%; float: left; padding-left: 1%; font-size: 80% } </style> --- Not GAISE compliant ... 'software should not crowd out statistical thinking'... --- ggplot itself is *not* doesn't let you easily provide detail you might need in a statistics class room.... .pull-left[ <img src="images/clipboard-28910671.png" width="80%" /> ] .pull-left[ Linguist S.I. Hayakawa in 1939: "Language in Action." New York: Harcourt, Brace. h/t: The Ladder of Abstraction in Statistical Graphics by Andrew Gelman and Kaiser Fung ] <!-- Where you have to connect all the ideas, and go from raw data to abstract ideas and inferential assertions. Base ggplot2 and extension I'd run across hadn't made these linkages, as *is* done by ISI book & applets β --> -- Cobb: 'For most students, their noses stay too close to the canvas, they only see *disconnected* details. ' <!-- ggplot2 & extensions 2020 ladders with missing rungs for stats educators. --> --- # No. -- # Logical. -- # Leaps. --- -- # No. -- # Missing. -- # Rungs. --- <img src="images/clipboard-4014439221.png" width="80%" /> --- > 'Extending `ggplot2` [using ggproto extension points] is not for the faint-hearted.' Cynthia Huang 'Plot Helper Functions' --- - 2022-Present - Community Organizer, co-founder: ggplot2 extenders meetup  --- Education... Easy geom recipes... --- # Finally, main topic... gg extension X ISI X EAPOST? - ggprop.test <https://github.com/EvaMaeRey/ggprop.test> - ggt.test <https://evamaerey.github.io/ggt.test/> - ggxmeans <https://github.com/EvaMaeRey/ggxmean> -- <https://evamaerey.github.io/mytidytuesday/2026-05-04-ggttest-ggram/intro-stats-narrative.html> --- count: false .panel1-dolphin-auto[ ``` r *library(tidyverse) ``` ] .panel2-dolphin-auto[ ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) *library(ggprop.test) ``` ] .panel2-dolphin-auto[ ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) library(ggprop.test) *dolphin_data ``` ] .panel2-dolphin-auto[ ``` # A tibble: 16 Γ 1 observed <fct> 1 Correct (1) 2 Correct (1) 3 Correct (1) 4 Correct (1) 5 Correct (1) 6 Not Correct (0) 7 Correct (1) 8 Correct (1) 9 Correct (1) 10 Correct (1) 11 Correct (1) 12 Correct (1) 13 Correct (1) 14 Correct (1) 15 Correct (1) 16 Correct (1) ``` ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) library(ggprop.test) dolphin_data |> * ggplot() ``` ] .panel2-dolphin-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_auto_04_output-1.png" width="576" /> ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) library(ggprop.test) dolphin_data |> ggplot() + * labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") ``` ] .panel2-dolphin-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_auto_05_output-1.png" width="576" /> ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) library(ggprop.test) dolphin_data |> ggplot() + labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") + * aes(x = observed) ``` ] .panel2-dolphin-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_auto_06_output-1.png" width="576" /> ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) library(ggprop.test) dolphin_data |> ggplot() + labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") + aes(x = observed) + * geom_stack() ``` ] .panel2-dolphin-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_auto_07_output-1.png" width="576" /> ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) library(ggprop.test) dolphin_data |> ggplot() + labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") + aes(x = observed) + geom_stack() + * geom_stack_label() ``` ] .panel2-dolphin-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_auto_08_output-1.png" width="576" /> ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) library(ggprop.test) dolphin_data |> ggplot() + labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") + aes(x = observed) + geom_stack() + geom_stack_label() + * geom_support() ``` ] .panel2-dolphin-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_auto_09_output-1.png" width="576" /> ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) library(ggprop.test) dolphin_data |> ggplot() + labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") + aes(x = observed) + geom_stack() + geom_stack_label() + geom_support() + * geom_prop() ``` ] .panel2-dolphin-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_auto_10_output-1.png" width="576" /> ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) library(ggprop.test) dolphin_data |> ggplot() + labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") + aes(x = observed) + geom_stack() + geom_stack_label() + geom_support() + geom_prop() + * geom_prop_label() ``` ] .panel2-dolphin-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_auto_11_output-1.png" width="576" /> ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) library(ggprop.test) dolphin_data |> ggplot() + labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") + aes(x = observed) + geom_stack() + geom_stack_label() + geom_support() + geom_prop() + geom_prop_label() + * stamp_prop(.5) ``` ] .panel2-dolphin-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_auto_12_output-1.png" width="576" /> ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) library(ggprop.test) dolphin_data |> ggplot() + labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") + aes(x = observed) + geom_stack() + geom_stack_label() + geom_support() + geom_prop() + geom_prop_label() + stamp_prop(.5) + * stamp_prop_label(.5) ``` ] .panel2-dolphin-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_auto_13_output-1.png" width="576" /> ] --- count: false .panel1-dolphin-auto[ ``` r library(tidyverse) library(ggprop.test) dolphin_data |> ggplot() + labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") + aes(x = observed) + geom_stack() + geom_stack_label() + geom_support() + geom_prop() + geom_prop_label() + stamp_prop(.5) + stamp_prop_label(.5) + * geom_binomial_null(.5) ``` ] .panel2-dolphin-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_auto_14_output-1.png" width="576" /> ] <style> .panel1-dolphin-auto { color: black; width: 38.6060606060606%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel2-dolphin-auto { color: black; width: 59.3939393939394%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel3-dolphin-auto { color: black; width: NA%; hight: 33%; float: left; padding-left: 1%; font-size: 80% } </style> --- count: false .panel1-organs-auto[ ``` r *donor_data ``` ] .panel2-organs-auto[ ``` # A tibble: 161 Γ 1 decision <fct> 1 donor (1) 2 donor (1) 3 not (0) 4 donor (1) 5 not (0) 6 not (0) 7 not (0) 8 not (0) 9 not (0) 10 donor (1) # βΉ 151 more rows ``` ] --- count: false .panel1-organs-auto[ ``` r donor_data |> * ggplot() ``` ] .panel2-organs-auto[ <img src="eapost-talk-2026-november_files/figure-html/organs_auto_02_output-1.png" width="576" /> ] --- count: false .panel1-organs-auto[ ``` r donor_data |> ggplot() + * labs(title = "Organ donationπ«π«responses like coin flips?") ``` ] .panel2-organs-auto[ <img src="eapost-talk-2026-november_files/figure-html/organs_auto_03_output-1.png" width="576" /> ] --- count: false .panel1-organs-auto[ ``` r donor_data |> ggplot() + labs(title = "Organ donationπ«π«responses like coin flips?") + * aes(x = decision) ``` ] .panel2-organs-auto[ <img src="eapost-talk-2026-november_files/figure-html/organs_auto_04_output-1.png" width="576" /> ] --- count: false .panel1-organs-auto[ ``` r donor_data |> ggplot() + labs(title = "Organ donationπ«π«responses like coin flips?") + aes(x = decision) + * geom_stack() ``` ] .panel2-organs-auto[ <img src="eapost-talk-2026-november_files/figure-html/organs_auto_05_output-1.png" width="576" /> ] --- count: false .panel1-organs-auto[ ``` r donor_data |> ggplot() + labs(title = "Organ donationπ«π«responses like coin flips?") + aes(x = decision) + geom_stack() + * geom_stack_label() ``` ] .panel2-organs-auto[ <img src="eapost-talk-2026-november_files/figure-html/organs_auto_06_output-1.png" width="576" /> ] --- count: false .panel1-organs-auto[ ``` r donor_data |> ggplot() + labs(title = "Organ donationπ«π«responses like coin flips?") + aes(x = decision) + geom_stack() + geom_stack_label() + * geom_support() ``` ] .panel2-organs-auto[ <img src="eapost-talk-2026-november_files/figure-html/organs_auto_07_output-1.png" width="576" /> ] --- count: false .panel1-organs-auto[ ``` r donor_data |> ggplot() + labs(title = "Organ donationπ«π«responses like coin flips?") + aes(x = decision) + geom_stack() + geom_stack_label() + geom_support() + * geom_prop() ``` ] .panel2-organs-auto[ <img src="eapost-talk-2026-november_files/figure-html/organs_auto_08_output-1.png" width="576" /> ] --- count: false .panel1-organs-auto[ ``` r donor_data |> ggplot() + labs(title = "Organ donationπ«π«responses like coin flips?") + aes(x = decision) + geom_stack() + geom_stack_label() + geom_support() + geom_prop() + * geom_prop_label() ``` ] .panel2-organs-auto[ <img src="eapost-talk-2026-november_files/figure-html/organs_auto_09_output-1.png" width="576" /> ] --- count: false .panel1-organs-auto[ ``` r donor_data |> ggplot() + labs(title = "Organ donationπ«π«responses like coin flips?") + aes(x = decision) + geom_stack() + geom_stack_label() + geom_support() + geom_prop() + geom_prop_label() + * stamp_prop(.5) ``` ] .panel2-organs-auto[ <img src="eapost-talk-2026-november_files/figure-html/organs_auto_10_output-1.png" width="576" /> ] --- count: false .panel1-organs-auto[ ``` r donor_data |> ggplot() + labs(title = "Organ donationπ«π«responses like coin flips?") + aes(x = decision) + geom_stack() + geom_stack_label() + geom_support() + geom_prop() + geom_prop_label() + stamp_prop(.5) + * stamp_prop_label(.5) ``` ] .panel2-organs-auto[ <img src="eapost-talk-2026-november_files/figure-html/organs_auto_11_output-1.png" width="576" /> ] --- count: false .panel1-organs-auto[ ``` r donor_data |> ggplot() + labs(title = "Organ donationπ«π«responses like coin flips?") + aes(x = decision) + geom_stack() + geom_stack_label() + geom_support() + geom_prop() + geom_prop_label() + stamp_prop(.5) + stamp_prop_label(.5) + * geom_binomial_null(.5) ``` ] .panel2-organs-auto[ <img src="eapost-talk-2026-november_files/figure-html/organs_auto_12_output-1.png" width="576" /> ] <style> .panel1-organs-auto { color: black; width: 38.6060606060606%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel2-organs-auto { color: black; width: 59.3939393939394%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel3-organs-auto { color: black; width: NA%; hight: 33%; float: left; padding-left: 1%; font-size: 80% } </style> --- ``` r p <- dolphin_data |> ggplot() + labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") + aes(x = observed) + geom_stack() + geom_stack_label() + geom_support() + geom_prop() + geom_prop_label() ``` --- count: false # Simulation Based Inference .panel1-dolphin_simulation-auto[ ``` r *p ``` ] .panel2-dolphin_simulation-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_simulation_auto_01_output-1.png" width="576" /> ] --- count: false # Simulation Based Inference .panel1-dolphin_simulation-auto[ ``` r p + * labs(title = "What's consistent with 16 coin flips? \nπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺ") ``` ] .panel2-dolphin_simulation-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_simulation_auto_02_output-1.png" width="576" /> ] --- count: false # Simulation Based Inference .panel1-dolphin_simulation-auto[ ``` r p + labs(title = "What's consistent with 16 coin flips? \nπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺ") + * dolphin_data |> mutate(observed = * to_synthetic(observed)) ``` ] .panel2-dolphin_simulation-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_simulation_auto_03_output-1.png" width="576" /> ] --- count: false # Simulation Based Inference .panel1-dolphin_simulation-auto[ ``` r p + labs(title = "What's consistent with 16 coin flips? \nπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺ") + dolphin_data |> mutate(observed = to_synthetic(observed)) + * dolphin_data |> mutate(observed = to_synthetic(observed)) ``` ] .panel2-dolphin_simulation-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_simulation_auto_04_output-1.png" width="576" /> ] --- count: false # Simulation Based Inference .panel1-dolphin_simulation-auto[ ``` r p + labs(title = "What's consistent with 16 coin flips? \nπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺ") + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + * dolphin_data |> mutate(observed = to_synthetic(observed)) ``` ] .panel2-dolphin_simulation-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_simulation_auto_05_output-1.png" width="576" /> ] --- count: false # Simulation Based Inference .panel1-dolphin_simulation-auto[ ``` r p + labs(title = "What's consistent with 16 coin flips? \nπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺ") + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + * dolphin_data |> mutate(observed = to_synthetic(observed)) ``` ] .panel2-dolphin_simulation-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_simulation_auto_06_output-1.png" width="576" /> ] --- count: false # Simulation Based Inference .panel1-dolphin_simulation-auto[ ``` r p + labs(title = "What's consistent with 16 coin flips? \nπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺ") + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + * dolphin_data |> mutate(observed = to_synthetic(observed)) ``` ] .panel2-dolphin_simulation-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_simulation_auto_07_output-1.png" width="576" /> ] --- count: false # Simulation Based Inference .panel1-dolphin_simulation-auto[ ``` r p + labs(title = "What's consistent with 16 coin flips? \nπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺ") + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + * dolphin_data |> mutate(observed = to_synthetic(observed)) ``` ] .panel2-dolphin_simulation-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_simulation_auto_08_output-1.png" width="576" /> ] --- count: false # Simulation Based Inference .panel1-dolphin_simulation-auto[ ``` r p + labs(title = "What's consistent with 16 coin flips? \nπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺ") + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + * dolphin_data |> mutate(observed = to_synthetic(observed)) ``` ] .panel2-dolphin_simulation-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_simulation_auto_09_output-1.png" width="576" /> ] --- count: false # Simulation Based Inference .panel1-dolphin_simulation-auto[ ``` r p + labs(title = "What's consistent with 16 coin flips? \nπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺ") + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + * dolphin_data |> mutate(observed = to_synthetic(observed)) ``` ] .panel2-dolphin_simulation-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_simulation_auto_10_output-1.png" width="576" /> ] --- count: false # Simulation Based Inference .panel1-dolphin_simulation-auto[ ``` r p + labs(title = "What's consistent with 16 coin flips? \nπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺπͺ") + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + dolphin_data |> mutate(observed = to_synthetic(observed)) + * dolphin_data |> mutate(observed = to_synthetic(observed)) ``` ] .panel2-dolphin_simulation-auto[ <img src="eapost-talk-2026-november_files/figure-html/dolphin_simulation_auto_11_output-1.png" width="576" /> ] <style> .panel1-dolphin_simulation-auto { color: black; width: 38.6060606060606%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel2-dolphin_simulation-auto { color: black; width: 59.3939393939394%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel3-dolphin_simulation-auto { color: black; width: NA%; hight: 33%; float: left; padding-left: 1%; font-size: 80% } </style> --- ### Branching of Binomial Distribution ``` r library(ggprop.test) tidy_dbinom( * num_trials = 1, single_trial_prob = .5 ) ``` ``` # A tibble: 2 Γ 4 num_successes probability single_trial_prob num_trials <int> <dbl> <dbl> <dbl> 1 0 0.5 0.5 1 2 1 0.5 0.5 1 ``` --- # Branching of Binomial Distribution ``` r library(ggprop.test) tidy_dbinom(num_trials = 2, single_trial_prob = .5) ``` ``` # A tibble: 3 Γ 4 num_successes probability single_trial_prob num_trials <int> <dbl> <dbl> <dbl> 1 0 0.25 0.5 2 2 1 0.5 0.5 2 3 2 0.25 0.5 2 ``` --- # Branching of Binomial Distribution ``` r library(ggprop.test) tidy_dbinom(num_trials = 3, single_trial_prob = .5) ``` ``` # A tibble: 4 Γ 4 num_successes probability single_trial_prob num_trials <int> <dbl> <dbl> <dbl> 1 0 0.125 0.5 3 2 1 0.375 0.5 3 3 2 0.375 0.5 3 4 3 0.125 0.5 3 ``` --- # Branching of Binomial Distribution ``` r library(ggprop.test) tidy_dbinom(num_trials = 4, single_trial_prob = .5) ``` ``` # A tibble: 5 Γ 4 num_successes probability single_trial_prob num_trials <int> <dbl> <dbl> <dbl> 1 0 0.0625 0.5 4 2 1 0.25 0.5 4 3 2 0.375 0.5 4 4 3 0.25 0.5 4 5 4 0.0625 0.5 4 ``` --- # Branching of Binomial Distribution ``` r library(ggprop.test) tidy_dbinom(num_trials = 5, single_trial_prob = .5) ``` ``` # A tibble: 6 Γ 4 num_successes probability single_trial_prob num_trials <int> <dbl> <dbl> <dbl> 1 0 0.0312 0.5 5 2 1 0.156 0.5 5 3 2 0.312 0.5 5 4 3 0.312 0.5 5 5 4 0.156 0.5 5 6 5 0.0312 0.5 5 ``` --- # Branching of Binomial Distribution ``` r library(ggprop.test) tidy_dbinom(num_trials = 6, single_trial_prob = .5) ``` ``` # A tibble: 7 Γ 4 num_successes probability single_trial_prob num_trials <int> <dbl> <dbl> <dbl> 1 0 0.0156 0.5 6 2 1 0.0937 0.5 6 3 2 0.234 0.5 6 4 3 0.312 0.5 6 5 4 0.234 0.5 6 6 5 0.0937 0.5 6 7 6 0.0156 0.5 6 ``` --- # Branching of Binomial Distribution ``` r library(ggprop.test) tidy_dbinom(num_trials = 7, single_trial_prob = .5) ``` ``` # A tibble: 8 Γ 4 num_successes probability single_trial_prob num_trials <int> <dbl> <dbl> <dbl> 1 0 0.00781 0.5 7 2 1 0.0547 0.5 7 3 2 0.164 0.5 7 4 3 0.273 0.5 7 5 4 0.273 0.5 7 6 5 0.164 0.5 7 7 6 0.0547 0.5 7 8 7 0.00781 0.5 7 ``` --- # Branching of Binomial Distribution ``` r library(ggprop.test) tidy_dbinom(num_trials = 8, single_trial_prob = .5) ``` ``` # A tibble: 9 Γ 4 num_successes probability single_trial_prob num_trials <int> <dbl> <dbl> <dbl> 1 0 0.00391 0.5 8 2 1 0.0313 0.5 8 3 2 0.109 0.5 8 4 3 0.219 0.5 8 5 4 0.273 0.5 8 6 5 0.219 0.5 8 7 6 0.109 0.5 8 8 7 0.0313 0.5 8 9 8 0.00391 0.5 8 ``` --- # Branching of Binomial Distribution ``` r library(ggprop.test) tidy_dbinom(num_trials = 16, single_trial_prob = .5) ``` ``` # A tibble: 17 Γ 4 num_successes probability single_trial_prob num_trials <int> <dbl> <dbl> <dbl> 1 0 0.0000153 0.5 16 2 1 0.000244 0.5 16 3 2 0.00183 0.5 16 4 3 0.00854 0.5 16 5 4 0.0278 0.5 16 6 5 0.0667 0.5 16 7 6 0.122 0.5 16 8 7 0.175 0.5 16 9 8 0.196 0.5 16 10 9 0.175 0.5 16 11 10 0.122 0.5 16 12 11 0.0667 0.5 16 13 12 0.0278 0.5 16 14 13 0.00854 0.5 16 15 14 0.00183 0.5 16 16 15 0.000244 0.5 16 17 16 0.0000153 0.5 16 ``` --- count: false ## t-test .panel1-ttest-auto[ ``` r *library(ggt.test) ``` ] .panel2-ttest-auto[ ] --- count: false ## t-test .panel1-ttest-auto[ ``` r library(ggt.test) *data_grit_undergrad ``` ] .panel2-ttest-auto[ ``` # A tibble: 21 Γ 1 score <dbl> 1 3.18 2 2.4 3 3.2 4 3.16 5 3 6 3.5 7 3.6 8 3.4 9 3.42 10 2.3 # βΉ 11 more rows ``` ] --- count: false ## t-test .panel1-ttest-auto[ ``` r library(ggt.test) data_grit_undergrad |> * ggplot() ``` ] .panel2-ttest-auto[ <img src="eapost-talk-2026-november_files/figure-html/ttest_auto_03_output-1.png" width="576" /> ] --- count: false ## t-test .panel1-ttest-auto[ ``` r library(ggt.test) data_grit_undergrad |> ggplot() + * labs(title = "As Gritty on average as West Point Cadets? πͺπͺπ§") ``` ] .panel2-ttest-auto[ <img src="eapost-talk-2026-november_files/figure-html/ttest_auto_04_output-1.png" width="576" /> ] --- count: false ## t-test .panel1-ttest-auto[ ``` r library(ggt.test) data_grit_undergrad |> ggplot() + labs(title = "As Gritty on average as West Point Cadets? πͺπͺπ§") + * aes(score) ``` ] .panel2-ttest-auto[ <img src="eapost-talk-2026-november_files/figure-html/ttest_auto_05_output-1.png" width="576" /> ] --- count: false ## t-test .panel1-ttest-auto[ ``` r library(ggt.test) data_grit_undergrad |> ggplot() + labs(title = "As Gritty on average as West Point Cadets? πͺπͺπ§") + aes(score) + * geom_rug() ``` ] .panel2-ttest-auto[ <img src="eapost-talk-2026-november_files/figure-html/ttest_auto_06_output-1.png" width="576" /> ] --- count: false ## t-test .panel1-ttest-auto[ ``` r library(ggt.test) data_grit_undergrad |> ggplot() + labs(title = "As Gritty on average as West Point Cadets? πͺπͺπ§") + aes(score) + geom_rug() + * geom_stacks() ``` ] .panel2-ttest-auto[ <img src="eapost-talk-2026-november_files/figure-html/ttest_auto_07_output-1.png" width="576" /> ] --- count: false ## t-test .panel1-ttest-auto[ ``` r library(ggt.test) data_grit_undergrad |> ggplot() + labs(title = "As Gritty on average as West Point Cadets? πͺπͺπ§") + aes(score) + geom_rug() + geom_stacks() + * geom_support() ``` ] .panel2-ttest-auto[ <img src="eapost-talk-2026-november_files/figure-html/ttest_auto_08_output-1.png" width="576" /> ] --- count: false ## t-test .panel1-ttest-auto[ ``` r library(ggt.test) data_grit_undergrad |> ggplot() + labs(title = "As Gritty on average as West Point Cadets? πͺπͺπ§") + aes(score) + geom_rug() + geom_stacks() + geom_support() + * geom_mean() ``` ] .panel2-ttest-auto[ <img src="eapost-talk-2026-november_files/figure-html/ttest_auto_09_output-1.png" width="576" /> ] --- count: false ## t-test .panel1-ttest-auto[ ``` r library(ggt.test) data_grit_undergrad |> ggplot() + labs(title = "As Gritty on average as West Point Cadets? πͺπͺπ§") + aes(score) + geom_rug() + geom_stacks() + geom_support() + geom_mean() + * geom_mean_label() ``` ] .panel2-ttest-auto[ <img src="eapost-talk-2026-november_files/figure-html/ttest_auto_10_output-1.png" width="576" /> ] --- count: false ## t-test .panel1-ttest-auto[ ``` r library(ggt.test) data_grit_undergrad |> ggplot() + labs(title = "As Gritty on average as West Point Cadets? πͺπͺπ§") + aes(score) + geom_rug() + geom_stacks() + geom_support() + geom_mean() + geom_mean_label() + * stamp_mean(3.75) ``` ] .panel2-ttest-auto[ <img src="eapost-talk-2026-november_files/figure-html/ttest_auto_11_output-1.png" width="576" /> ] --- count: false ## t-test .panel1-ttest-auto[ ``` r library(ggt.test) data_grit_undergrad |> ggplot() + labs(title = "As Gritty on average as West Point Cadets? πͺπͺπ§") + aes(score) + geom_rug() + geom_stacks() + geom_support() + geom_mean() + geom_mean_label() + stamp_mean(3.75) + * geom_tdist_null(3.75) ``` ] .panel2-ttest-auto[ <img src="eapost-talk-2026-november_files/figure-html/ttest_auto_12_output-1.png" width="576" /> ] <style> .panel1-ttest-auto { color: black; width: 38.6060606060606%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel2-ttest-auto { color: black; width: 59.3939393939394%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel3-ttest-auto { color: black; width: NA%; hight: 33%; float: left; padding-left: 1%; font-size: 80% } </style> --- count: false ## Difference in means .panel1-haircuts-auto[ ``` r *data_haircuts ``` ] .panel2-haircuts-auto[ ``` sex price 1 Female 50 2 Male 20 3 Female 60 4 Male 75 5 Female 150 6 Male 23 7 Female 15 8 Female 90 9 Female 20 10 Female 110 11 Female 0 12 Female 40 13 Female 35 14 Male 20 15 Female 30 16 Female 50 17 Female 70 18 Female 50 19 Female 75 20 Female 150 21 Female 35 22 Female 45 23 Female 70 24 Female 50 25 Male 15 26 Female 20 27 Female 150 28 Female 45 29 Male 0 30 Male 22 31 Male 15 32 Female 65 33 Female 120 34 Female 45 35 Female 15 36 Female 25 37 Female 0 38 Male 20 39 Female 35 40 Female 120 41 Female 45 42 Female 30 43 Female 55 44 Female 0 45 Male 0 46 Female 15 47 Male 0 48 Male 14 49 Male 60 50 Female 20 ``` ] --- count: false ## Difference in means .panel1-haircuts-auto[ ``` r data_haircuts |> * ggplot() ``` ] .panel2-haircuts-auto[ <img src="eapost-talk-2026-november_files/figure-html/haircuts_auto_02_output-1.png" width="576" /> ] --- count: false ## Difference in means .panel1-haircuts-auto[ ``` r data_haircuts |> ggplot() + * labs(title = "Are haircut price averages different for men v. women") ``` ] .panel2-haircuts-auto[ <img src="eapost-talk-2026-november_files/figure-html/haircuts_auto_03_output-1.png" width="576" /> ] --- count: false ## Difference in means .panel1-haircuts-auto[ ``` r data_haircuts |> ggplot() + labs(title = "Are haircut price averages different for men v. women") + * aes(x = price) ``` ] .panel2-haircuts-auto[ <img src="eapost-talk-2026-november_files/figure-html/haircuts_auto_04_output-1.png" width="576" /> ] --- count: false ## Difference in means .panel1-haircuts-auto[ ``` r data_haircuts |> ggplot() + labs(title = "Are haircut price averages different for men v. women") + aes(x = price) + * geom_rug() ``` ] .panel2-haircuts-auto[ <img src="eapost-talk-2026-november_files/figure-html/haircuts_auto_05_output-1.png" width="576" /> ] --- count: false ## Difference in means .panel1-haircuts-auto[ ``` r data_haircuts |> ggplot() + labs(title = "Are haircut price averages different for men v. women") + aes(x = price) + geom_rug() + * geom_stacks() ``` ] .panel2-haircuts-auto[ <img src="eapost-talk-2026-november_files/figure-html/haircuts_auto_06_output-1.png" width="576" /> ] --- count: false ## Difference in means .panel1-haircuts-auto[ ``` r data_haircuts |> ggplot() + labs(title = "Are haircut price averages different for men v. women") + aes(x = price) + geom_rug() + geom_stacks() + * geom_mean() ``` ] .panel2-haircuts-auto[ <img src="eapost-talk-2026-november_files/figure-html/haircuts_auto_07_output-1.png" width="576" /> ] --- count: false ## Difference in means .panel1-haircuts-auto[ ``` r data_haircuts |> ggplot() + labs(title = "Are haircut price averages different for men v. women") + aes(x = price) + geom_rug() + geom_stacks() + geom_mean() + * geom_mean_label() ``` ] .panel2-haircuts-auto[ <img src="eapost-talk-2026-november_files/figure-html/haircuts_auto_08_output-1.png" width="576" /> ] --- count: false ## Difference in means .panel1-haircuts-auto[ ``` r data_haircuts |> ggplot() + labs(title = "Are haircut price averages different for men v. women") + aes(x = price) + geom_rug() + geom_stacks() + geom_mean() + geom_mean_label() + * facet_align(sex) ``` ] .panel2-haircuts-auto[ <img src="eapost-talk-2026-november_files/figure-html/haircuts_auto_09_output-1.png" width="576" /> ] --- count: false ## Difference in means .panel1-haircuts-auto[ ``` r data_haircuts |> ggplot() + labs(title = "Are haircut price averages different for men v. women") + aes(x = price) + geom_rug() + geom_stacks() + geom_mean() + geom_mean_label() + facet_align(sex) + * geom_mean_diff() ``` ] .panel2-haircuts-auto[ <img src="eapost-talk-2026-november_files/figure-html/haircuts_auto_10_output-1.png" width="576" /> ] --- count: false ## Difference in means .panel1-haircuts-auto[ ``` r data_haircuts |> ggplot() + labs(title = "Are haircut price averages different for men v. women") + aes(x = price) + geom_rug() + geom_stacks() + geom_mean() + geom_mean_label() + facet_align(sex) + geom_mean_diff() + * geom_mean_diff_label() ``` ] .panel2-haircuts-auto[ <img src="eapost-talk-2026-november_files/figure-html/haircuts_auto_11_output-1.png" width="576" /> ] <style> .panel1-haircuts-auto { color: black; width: 38.6060606060606%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel2-haircuts-auto { color: black; width: 59.3939393939394%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel3-haircuts-auto { color: black; width: NA%; hight: 33%; float: left; padding-left: 1%; font-size: 80% } </style> --- count: false ## OLS .panel1-linearmodel-auto[ ``` r *library(ggxmean) ``` ] .panel2-linearmodel-auto[ ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) *mtcars ``` ] .panel2-linearmodel-auto[ ``` mpg cyl disp hp drat wt qsec vs am gear carb Mazda RX4 21.0 6 160.0 110 3.90 2.620 16.46 0 1 4 4 Mazda RX4 Wag 21.0 6 160.0 110 3.90 2.875 17.02 0 1 4 4 Datsun 710 22.8 4 108.0 93 3.85 2.320 18.61 1 1 4 1 Hornet 4 Drive 21.4 6 258.0 110 3.08 3.215 19.44 1 0 3 1 Hornet Sportabout 18.7 8 360.0 175 3.15 3.440 17.02 0 0 3 2 Valiant 18.1 6 225.0 105 2.76 3.460 20.22 1 0 3 1 Duster 360 14.3 8 360.0 245 3.21 3.570 15.84 0 0 3 4 Merc 240D 24.4 4 146.7 62 3.69 3.190 20.00 1 0 4 2 Merc 230 22.8 4 140.8 95 3.92 3.150 22.90 1 0 4 2 Merc 280 19.2 6 167.6 123 3.92 3.440 18.30 1 0 4 4 Merc 280C 17.8 6 167.6 123 3.92 3.440 18.90 1 0 4 4 Merc 450SE 16.4 8 275.8 180 3.07 4.070 17.40 0 0 3 3 Merc 450SL 17.3 8 275.8 180 3.07 3.730 17.60 0 0 3 3 Merc 450SLC 15.2 8 275.8 180 3.07 3.780 18.00 0 0 3 3 Cadillac Fleetwood 10.4 8 472.0 205 2.93 5.250 17.98 0 0 3 4 Lincoln Continental 10.4 8 460.0 215 3.00 5.424 17.82 0 0 3 4 Chrysler Imperial 14.7 8 440.0 230 3.23 5.345 17.42 0 0 3 4 Fiat 128 32.4 4 78.7 66 4.08 2.200 19.47 1 1 4 1 Honda Civic 30.4 4 75.7 52 4.93 1.615 18.52 1 1 4 2 Toyota Corolla 33.9 4 71.1 65 4.22 1.835 19.90 1 1 4 1 Toyota Corona 21.5 4 120.1 97 3.70 2.465 20.01 1 0 3 1 Dodge Challenger 15.5 8 318.0 150 2.76 3.520 16.87 0 0 3 2 AMC Javelin 15.2 8 304.0 150 3.15 3.435 17.30 0 0 3 2 Camaro Z28 13.3 8 350.0 245 3.73 3.840 15.41 0 0 3 4 Pontiac Firebird 19.2 8 400.0 175 3.08 3.845 17.05 0 0 3 2 Fiat X1-9 27.3 4 79.0 66 4.08 1.935 18.90 1 1 4 1 Porsche 914-2 26.0 4 120.3 91 4.43 2.140 16.70 0 1 5 2 Lotus Europa 30.4 4 95.1 113 3.77 1.513 16.90 1 1 5 2 Ford Pantera L 15.8 8 351.0 264 4.22 3.170 14.50 0 1 5 4 Ferrari Dino 19.7 6 145.0 175 3.62 2.770 15.50 0 1 5 6 Maserati Bora 15.0 8 301.0 335 3.54 3.570 14.60 0 1 5 8 Volvo 142E 21.4 4 121.0 109 4.11 2.780 18.60 1 1 4 2 ``` ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> * ggplot() ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_03_output-1.png" width="576" /> ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> ggplot() + * labs(title = "Does weight predict milage? ππποΈ") ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_04_output-1.png" width="576" /> ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> ggplot() + labs(title = "Does weight predict milage? ππποΈ") + * aes(x = wt) ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_05_output-1.png" width="576" /> ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> ggplot() + labs(title = "Does weight predict milage? ππποΈ") + aes(x = wt) + * geom_rug() ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_06_output-1.png" width="576" /> ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> ggplot() + labs(title = "Does weight predict milage? ππποΈ") + aes(x = wt) + geom_rug() + * aes(y = mpg) ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_07_output-1.png" width="576" /> ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> ggplot() + labs(title = "Does weight predict milage? ππποΈ") + aes(x = wt) + geom_rug() + aes(y = mpg) + * geom_point() ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_08_output-1.png" width="576" /> ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> ggplot() + labs(title = "Does weight predict milage? ππποΈ") + aes(x = wt) + geom_rug() + aes(y = mpg) + geom_point() + * geom_lm() ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_09_output-1.png" width="576" /> ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> ggplot() + labs(title = "Does weight predict milage? ππποΈ") + aes(x = wt) + geom_rug() + aes(y = mpg) + geom_point() + geom_lm() + * geom_lm_fitted() ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_10_output-1.png" width="576" /> ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> ggplot() + labs(title = "Does weight predict milage? ππποΈ") + aes(x = wt) + geom_rug() + aes(y = mpg) + geom_point() + geom_lm() + geom_lm_fitted() + * geom_lm_residuals() ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_11_output-1.png" width="576" /> ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> ggplot() + labs(title = "Does weight predict milage? ππποΈ") + aes(x = wt) + geom_rug() + aes(y = mpg) + geom_point() + geom_lm() + geom_lm_fitted() + geom_lm_residuals() + * geom_lm_conf_int() ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_12_output-1.png" width="576" /> ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> ggplot() + labs(title = "Does weight predict milage? ππποΈ") + aes(x = wt) + geom_rug() + aes(y = mpg) + geom_point() + geom_lm() + geom_lm_fitted() + geom_lm_residuals() + geom_lm_conf_int() + * geom_lm_formula() ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_13_output-1.png" width="576" /> ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> ggplot() + labs(title = "Does weight predict milage? ππποΈ") + aes(x = wt) + geom_rug() + aes(y = mpg) + geom_point() + geom_lm() + geom_lm_fitted() + geom_lm_residuals() + geom_lm_conf_int() + geom_lm_formula() + * geom_lm_intercept() ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_14_output-1.png" width="576" /> ] --- count: false ## OLS .panel1-linearmodel-auto[ ``` r library(ggxmean) mtcars |> ggplot() + labs(title = "Does weight predict milage? ππποΈ") + aes(x = wt) + geom_rug() + aes(y = mpg) + geom_point() + geom_lm() + geom_lm_fitted() + geom_lm_residuals() + geom_lm_conf_int() + geom_lm_formula() + geom_lm_intercept() + * geom_lm_intercept_label(hjust = 0) ``` ] .panel2-linearmodel-auto[ <img src="eapost-talk-2026-november_files/figure-html/linearmodel_auto_15_output-1.png" width="576" /> ] <style> .panel1-linearmodel-auto { color: black; width: 38.6060606060606%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel2-linearmodel-auto { color: black; width: 59.3939393939394%; hight: 32%; float: left; padding-left: 1%; font-size: 80% } .panel3-linearmodel-auto { color: black; width: NA%; hight: 33%; float: left; padding-left: 1%; font-size: 80% } </style> --- https://github.com/arthurwelle/codehover/ ``` r {dolphin_data |> ggplot() + labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") + aes(x = observed) + geom_stack() + geom_stack_label() + geom_support() + geom_prop() + geom_prop_label() + stamp_prop(.5) + stamp_prop_label(.5) + geom_binomial_null(.5)} |> codehover::ch_hover() #<< in-script reveal - student - usable? ``` ---
ggplot(dolphin_data) +
labs(title = "Do Doris and Buzz Communicate π¬π¬ππͺ£?") +
aes(x = observed) +
geom_stack() +
geom_stack_label() +
geom_support() +
geom_prop() +
geom_prop_label() +
stamp_prop(0.5) +
stamp_prop_label(0.5) +
geom_binomial_null(0.5)
--- class: inverse, center, middle # Thank you!