Module 9. Assignment
1.How does the syntax and workflow differ between base, lattice, and ggplot2? You call plot() and hist() in Base R and specify labels, colors, and other things by yourself.Lattice has a formula interface (y ~ x | group) that makes tiny multiples simple to construct without having to write loops by hand.ggplot2 employs a layered syntax that is consistent and may be added to across plots.The layers include data, aesthetics, geoms, and facets. 2. Which system gave you the most control or produced the most “publication‑quality” output with minimal code? Layering (geom_point() + geom_smooth()) and consistent theming in ggplot2 provide professional pictures rapidly.Lattice is an excellent way to create conditioned views with very little code. Base is the quickest rapid inspections, but it requires more manual styling to look goodfor publishing. 3. Any challenges or surprises you encountered when switching between systems The mental model evolves every time: Base is easy to ...