Google Charts

Here's a chart using Google Visualization API.

In case you are wondering, the individuals are ordered by the sum of their South Asian, Pakistan/Caucasian and Kalash component percentages.

If it works well for everyone, using Internet Explorer, Firefox, Chrome, or Safari on Windows, Linux, iOS or Mac OS, then I'll start using these interactive bar charts instead of the ones I have been creating in R. These just use the data from the spreadsheet directly.

I am also looking into interactive scatter plots for the PCA plots, but I am not sure if it will handle a lot of data points without running your computer into the ground.

The Google Visualization API also has a geographical map feature using flash. There is also a static map chart which I am looking into.

12 Comments.

  1. it working well for me

  2. Nice, much better. I wouldn't ask more for you include the ethnic background info. 🙂

    • Working on integrating ethnic information somehow, though not like the way you did since I want the focus to be on the ID and thus the person. 🙂

  3. The chart works in Safari on my iPhone if I am using the regular theme. With the mobile theme, the chart disappears.

  4. Just fyi the chart works fine on a real phone like a blackberry.

  5. How did you link up R to Google visualization? I think this would be useful for my own work.

    • Well, it's not really a direct link from R to Google Charts. I save a CSV file from R. Then upload that to Google Docs, which can be loaded into Google's interactive charts.

  6. Looks great in Chrome - bravo!

  7. It looks good for me. I am currently using the IE9 release candidate.