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
, …