Assignment 9
Assignment 9: Visualization in R – Base Graphics, Lattice, and ggplot2 Objectives Compare three major visualization systems in R: Base graphics , Lattice , and ggplot2 . Apply all three to the same dataset to observe syntactic , conceptual , and visual differences . Produce clear, reproducible code and interpret key findings. Dataset Overview For this assignment, I used the Breast Cancer Wisconsin Diagnostic dataset ( brca ) from the dslabs package — a common bioinformatics dataset used to classify tumor samples as Benign (B) or Malignant (M) based on cell nucleus measurements. This dataset contains features computed from breast mass cell nuclei. brca$y = Diagnosis (Benign or Malignant) brca$x = 30 numeric features describing cell characteristics Load and explore the data # Load libraries and dataset install.packages("dslabs") library(dslabs) data("brca") # 'brca$y' contains the diagnosis (Benign/ Malignant) # 'brca$x' is a matrix of 30...