Basic R
has multiple, separate functions, each used for creating a specific type of representation: boxplot, histogram, scatter plot etc. ggplot2
is an R
package for creating elegant data visualization using the conceptual philosophy that views a plot as the assembly of different fundamental parts: \[Plot = Data + Aesthetics + Geometry\]
- Plot: the final graphics.
- Data: tabular data in tibble or a data frame.
- Aesthetics: Describe visual characteristics that represent data (position, size, color, shape, transparency, fill, scales.
- Geometry: defines the graphical representation: histogram, boxplot, scatter plot. Defines the type of geometric objects that represent data (points, lines, polygons.).