Intro to Visualization with R
You’ve completed the introduction to ggplot lesson! You’re ready to follow the general pattern for creating a visualization:
- Determine what relationship you wish to explore in your data
- Find the right geom(s) in the ggplot2 documentation to display that relationship and read about the arguments and aesthetics specific to that geom
- Extend the grammar of graphics to follow the pattern learned in this lesson to add layers and create a visualization. Improve graph legibility by polishing labels and styles.
Some of the key concepts you learned in this lesson include:
- The basic units of grammar include data, geoms, and aesthetics.
- The dataframe associated to the plot by using the
ggplot() function creates a ggplot object that is known as the canvas.
- The geometries or geoms are the shapes that display the data. Geometries become layers as you add them to your ggplot object.
- The aesthetics are visual instructions you provide the plot. Aesthetics can be inherited or specified at the geom level.
- Aesthetic mappings are data-driven visual instructions for the plot.
- You can add context to your plot by customizing its labels with the