How to Draw and Use Polygons in R
R provides functions for basic shapes, but you can also draw your own for maximum fun.
You can use straightforward functions in R to draw certain shapes, such as circles, squares, and rectangles. However, sometimes you need to draw a more complicated shape or one that’s based on data.
To access this full tutorial, you must be a member. (If you are already a member, log in here.)
You will get unlimited access to step-by-step visualization courses and tutorials for insight and presentation — all while supporting an independent site. Files and data are included so that you can more easily apply what you learn in your own work.
Learn to make great charts that are beautiful and useful.
Members also receive a weekly newsletter, The Process. Keep up-to-date on visualization tools, the rules, and the guidelines and how they all work together in practice.
See samples of everything you gain access to:
More Tutorials See All →
How I Made That: Searchable Time Series Chart
When there are too many options or categories, it can be helpful to make the data searchable.
How to Make (and Animate) a Circular Time Series Plot in R
Also known as a polar plot, it is usually not the better option over a standard line chart, but in select cases the method can be useful to show cyclical patterns.
How to Make Animated (GIF) Heatmaps in R
Using color as the visual encoding, show changes over time in two dimensions.