We will learn to generate multiple plots in r as well as generate a custom legend. This post is in continuation of my prior post with the same name.
1) Tree maps art 2) Lost cause - USA Election
This is a fun experiment with circlize package in R.
Almost all the times we com across data that is not in the format we require it to be. Sometimes it has some information we need and other times we require additional information that can be retrieved using the data at hand. In the current tutorial we will explore the issue related to the case where data is present but we need some more information.
As promised in my previous post this post will dive deeper into understanding how to create links in R and further execute them to generate a list of XML output. In the third and final post we will use this list to filter the data and extract the information we need.
So this is it !!! In the current tutorial I will show you my entire code that i used to grab the data from web as well as learn to parse the XML data. This tutorial will be a bit longer but since you have already come to this point lets just get done with it.
In the current post i will describe one of the easier ways to generate a pyramid plot. The first time i came across a pyramid plot was on New York Times website. The NY times visualization used data from the American Cancer society to show new cases of cancer in 2007. The visualization can be viewed here. I have also seen census bureau use pyramid plots to display distribution of population by age. Flowing data website used an animated pyramid plot to show prevalence of obesity in USA here