Figure 1: Anscombe’s Quartet is a statistical trap, where datasets with fundamentally different characteristics and distributions can have the same (or very similar) summary statistics. This dataset is a modern more example that shows this trap in action. The graphic above visualizes a bullseye, dinosaur, and star, which are similar in their summary statistics but are obviously quite different visually.
datasaurus_viz<-datasaurus_summary_stat_viz+facet_datasaurus_viz+plot_annotation(title ='**Summary statistics can mislead**', subtitle ="The Anscombe Quartet is a statistical trap that demonstrates that summary statistics can be misleading. The visualization below shows three contemporary examples of the Anscombe Quartet problem. **Only by visualizing the data** can you understand the dramatic differences in the distribution of the data.", caption ='**Source**: Tidy Tuesday Week 41 (2020)', theme =theme(plot.title =element_textbox(size=rel(4.5), face='bold'), plot.subtitle =element_textbox_simple(size=rel(2), lineheight=.3), plot.caption =element_textbox(size=rel(1.5))))
7. Save
Show code
# Save the plot as PNGggsave( filename =glue("tt_{tt_year}_{tt_week}.png"), plot =datasaurus_viz, width =5, height =5, units ="in", dpi =320)# make thumbnail for pagemagick::image_read(glue("tt_{tt_year}_{tt_week}.png"))%>%magick::image_resize(geometry ="400")%>%magick::image_write(glue("tt_{tt_year}_{tt_week}_thumbnail.png"))