1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Data Visualization with ggplot2

Connected

Exercise

Using position objects

Now that the position objects have been created, you can apply them to the base plot to see their effects. You do this by adding a point geom and setting the position argument to the position object.

The variables from the last exercise, posn_j, posn_d, posn_jd, and p_wt_vs_fcyl_by_fam are available in your workspace.

Instructions 1/3

undefined XP
  • 1

    Apply the jitter position, posn_j, to the base plot.

  • 2

    Apply the dodge position, posn_d, to the base plot.

  • 3

    Apply the jitter-dodge position, posn_jd, to the base plot.