Get startedGet started for free

Exercise 3. Pipes

Now we are going to review the use of pipes by seeing how they can be used with ggplot.

This exercise is part of the course

Data Science Visualization - Module 2

View Course

Exercise instructions

Using the pipe %>%, create an object p associated with the heights dataset instead of with the murders dataset as in previous exercises.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

data(heights)
# define ggplot object called p like in the previous exercise but using a pipe 
Edit and Run Code