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 to Make an Animated Donut Chart in R
There are “better” ways to show proportions over time, but sometimes you just want an animated donut.
How to Make Small Multiples in Excel
Also known as trellis charts, lattice chart, or whatever you want to call them, the technique lets you compare several categories in one view.
Using Transparency in R to Improve Clarity
When you plot a lot of data at once, points and lines can obscure others and hide patterns. Transparency can help reveal what is really there.