Scripts and assignments from a Data Visualization course taught in R, spanning plotting libraries, statistical graphics, spatial data, and introductory data mining.
- ggplot2 — layered grammar of graphics: bar/line plots, histograms,
distributions, reordering, faceting,
qplot(L6–L10,class4/5). - lattice and base graphics comparisons (
lattice_ggplt.R). - Other visualization tools —
googleVis(L2),visregfor visualizing statistical models (L5), and Nathan Yau–style plots (L4). - Spatial data — mapping and spatial visualization (
L9–L11,spatial.R). - Data mining with
rattle— weather and general tutorials (L12,L13). - Statistics & ML — PCA, clustering, factor analysis, linear regression,
ANOVA, and decision trees (
class6,decision tree.R,titanic.R,pcabreast.R,cluster and regression.R). - Assignments and practice scripts (
assignment1.R,assignment2.R,pratice1.R).
Open the .R scripts in R or RStudio. Scripts depend on packages such as
ggplot2, lattice, googleVis, visreg, and rattle.