class: center, middle, inverse, title-slide # Define and pronounce ##
What they forgot to teach you
about
teaching
R ###
wtf-teach.netlify.app
--- layout: true <div class="my-footer"> <span> <a href="http://wtf-teach.netlify.app/" target="_blank">wtf-teach.netlify.app</a> </span> </div> --- class: inverse, middle # Define --- ```r ?double ``` <img src="images/double.png" width="70%" style="display: block; margin: auto;" /> --- ```r ?`%>%` ``` <img src="images/pipe.png" width="70%" style="display: block; margin: auto;" /> --- ## Define terms .hand[as relevant to your learners...] - At the level of your audience (e.g. functional programming: formal definition vs. how `map()` works) -- - In the context of your application (e.g. factors: how models handle them vs. why they're stored as integers internally) --- class: inverse, middle # Speak --- ## Read code and results out loud .small[ ```r ggplot(penguins, mapping = aes(x = flipper_length_mm, y = body_mass_g, color = species, shape = species)) + geom_point() + labs( title = "Penguin size, Palmer Station LTER", subtitle = "Flipper length and body mass for Adelie, Chinstrap and Gentoo Penguins", x = "Flipper length (mm)", y = "Body mass (g)" ) ``` ``` ## Warning: Removed 2 rows containing missing values (geom_point). ``` <img src="07-speak_files/figure-html/penguin-plot-1.png" width="60%" style="display: block; margin: auto;" /> ] --- ## ggplot2 novellas vs. ggplot2 poems .midi[ ```r ggplot(penguins,mapping=aes(x=flipper_length_mm, y=body_mass_g, color=species, shape=species))+geom_point()+labs(title="Penguin size, Palmer Station LTER", subtitle="Flipper length and body mass for Adelie, Chinstrap and Gentoo Penguins", x="Flipper length (mm)", y="Body mass (g)") ``` ] vs. .midi[ ```r ggplot(penguins, mapping = aes(x = flipper_length_mm, y = body_mass_g, color = species, shape = species)) + geom_point() + labs( title = "Penguin size, Palmer Station LTER", subtitle = "Flipper length and body mass for Adelie, Chinstrap and Gentoo Penguins", x = "Flipper length (mm)", y = "Body mass (g)" ) ``` ]