Fan plots are very similar to pie charts; the different sectors/slices in a fan plot overlap. The slice with the highest value is placed at the back and subsequent slices are plotted on top of it. In our example, Army has the highest percentage, followed by Marines, Air Force, and Navy. Note that Air Force and Navy overlap each other as the values are very close.
To construct a fan plot, we use the following two packages:
The fan plot is implemented using the
plotrix package; hence we need to install and load this in our R session. We have used the colors from
RColorBrewer and hence ...