Exploration
Inference
Explanation
10:11 11 March 2024
Exploration
Inference
Explanation
Goal: find patterns (& problems) in data, explore hypotheses
plot.lm
performance::check_model()
, DHARMa
packagesdotwhisker::dwplot
geom_smooth
)plot()
, lines()
and points()
legend()
, axis()
(for decoration)matplot()
for multi-series plots, boxplot()
for box plots, hist()
for histograms, contour()
and image()
, pairs()
, …par(mfrow)
, layout()
for multiple plots on a pagecar
(for scatterplot()
, scatterplotMatrix()
), plotrix
(miscellaneous “plot tricks”)ggplot(my_data,aes(x=age,y=rootgrowth,colour=phosphate))
geom_point
, geom_line
(ggplot(my_data,aes(x=age,y=rootgrowth,colour=phosphate))+geom_point())
geom_boxplot
, geom_smooth
facet_wrap
(free-form wrapping of subplots), facet_grid
(two-D grid of subplots)coord_flip()
, ggstance()
package)forcats::fct_reorder()
, forcats::fct_infreq()
RColorBrewer
/ColorBrewer, IWantHue), colorspace
, viridis
packages: respect dichromats and B&W printoutsggrepel
, directlabels
packages)googleVis
, Rggobi
, rgl
, Mondrian
, …Gelman, Andrew, Cristian Pasarica, and Rahul Dodhia. 2002. “Let’s Practice What We Preach: Turning Tables into Graphs.” The American Statistician 56 (2): 121–30. http://www.tandfonline.com/doi/abs/10.1198/000313002317572790.
John Rauser. 2016. “How Humans See Data.” https://www.youtube.com/watch?v=fSgEeI2Xpdc.
Wickham, H., D. Cook, H. Hofmann, and Andreas Buja. 2010. “Graphical Inference for Infovis.” IEEE Transactions on Visualization and Computer Graphics 16 (6): 973–79. https://doi.org/10.1109/TVCG.2010.161.