{dplyr} for arranging data frames{ggplot}{ggplot2}; + others{ggplot2}{ggplot2}Layer containing geometric elements and dataScales that map values in the data space to values in aesthetic spaceCoordinate System for mapping coordinates to the graphic planeFacet for arranging the data into a gridTheme (e.g., like font, background, grids, axes, etc.)Data (e.g., vector or data frame)Mapping (e.g., aesthetics corresponding to data)Statistical Transformation (e.g., sums, means, model fits, etc.)Geometric object (geom) controlling the type of visualizationPosition Adjustment (e.g., location of visual elements)constants (e.g., blue) or mapped to data as variables (e.g., blue or red)aes()x or y (e.g., geom_histogram())geom_point(), geom_col(), etc.)mapping: specified by arguments to aes()setting: specified by arguments in the geom_*(); outside of aes()x or y: geom_histogram(), geom_density(), geom_bar(), etc.x & y:geom_point(), geom_col(), geom_line(), etc.+ (don’t |>)geom_histogram()geom_histogram()geom_point()geom_point()ColorColorgeom_col()geom_col()geom_col() (Cont.)Notice anything odd?
geom_col() (Cont.)Set aesthetics to make more apparent.
"identity" (what you see is what you get)geom_boxplot()geom_boxplot()+geom_boxplot() + geom_point() geom_boxplot() + geom_point()facet_wrap() or facet_grid()