Tutorials  / 

Drawing Squares and Rectangles in R

R makes it easy to add squares and rectangles to your plots, but it gets a little tricky when you have a bunch to draw at once. The key is to break it down to the elements.

To access this tutorial you must be a member. (Already a member? Log in here.)

Membership

This is for people who want to learn how to or improve the way they design and create data graphics.

Members gain access to step-by-step tutorials and courses that include source code and files so that you can apply what you learn to your own data.

Find out more.

About the Author

Nathan Yau is a statistician who works primarily with visualization. He earned his PhD in statistics from UCLA, is the author of two best-selling books — Data Points and Visualize This — and runs FlowingData. Introvert. Likes food. Likes beer.