Developing our own graph type – radar graphs

This section will take our graph functions to the next level as we develop our own custom graph type. The ggplot2 package does not have a way to produce radar graphs by default, so we will develop it ourselves during this section. There are packages that extend ggplot2 with radar graph capabilities (for example, ggradar), but we will show how to create it yourself from scratch. After reading this section, you'll be equipped to develop complex graphs on your own.

Radar graphs are plotted on a circular canvas and can show many variables values at the same time. They form a radar-looking shape and are useful if you want to compare different variable values among various entities. Sometimes they are ...

Get R Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.