You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
American Indians vs Indian Americans, statewide population using googleVis
The population of Native Americans in the United States is estimated to be anywhere upto [20 million] (http://en.wikipedia.org/wiki/Native_Americans_in_the_United_States). I wanted to find out what the population of Native Americans (originally referred to as American Indians by immigrants) is and compare it to the number of Indians from India (Indian Americans).
I wanted to do this comparison by county, but the US Census Bureau and other Federal websites are unavailable because of the Government shutdown (as of Oct 7 2013). Hence I obtained state-wide totals of American Indians and Indian Americans from several sources and made the below maps using R and googleVis.
Data -
State-wide population of American Indians in 2010 - wikipedia
State-wide population totals of US states in 2010 - wikipedia
State-wide population totals of Indian Americans in 2010 - news article
First, I copied the data into a spreadsheet and cleaned it up and saved into a text file called "pop_indians.txt".
Next, I estimated the number of Indian Americans and American Indians as number per 1000 of the total population of each state.
# calculate number per 1000 of total populationpop_data$Indian_American<- sprintf("%.1f", pop_data$Pop_IndAm*1000/pop_data$Tot_Pop)
pop_data$American_Indian<- sprintf("%.1f", pop_data$Pop_AmInd*1000/pop_data$Tot_Pop)
head(pop_data)
<script type="text/javascript">
// jsData
function gvisDataIndAm () {
var data = new google.visualization.DataTable();
var datajson =
[
[
"Alaska",
1.7
],
[
"Alabama",
2.7
],
[
"Arkansas",
2.7
],
[
"Arizona",
5.6
],
[
"California",
14.2
],
[
"Colorado",
4.1
],
[
"Connecticut",
13
],
[
"District of Columbia",
8.7
],
[
"Delaware",
12.7
],
[
"Florida",
6.8
],
[
"Georgia",
9.9
],
[
"Hawaii",
1.6
],
[
"Iowa",
3.6
],
[
"Idaho",
1.4
],
[
"Illinois",
14.7
],
[
"Indiana",
4.3
],
[
"Kansas",
4.9
],
[
"Kentucky",
2.9
],
[
"Louisiana",
2.5
],
[
"Massachusetts",
11.8
],
[
"Maryland",
13.7
],
[
"Maine",
1.5
],
[
"Michigan",
7.8
],
[
"Minnesota",
6.2
],
[
"Missouri",
3.9
],
[
"Mississippi",
1.9
],
[
"Montana",
0.6
],
[
"North Carolina",
6
],
[
"North Dakota",
2.3
],
[
"Nebraska",
3.2
],
[
"New Hampshire",
6.3
],
[
"New Jersey",
33.2
],
[
"New Mexico",
2.2
],
[
"Nevada",
4.3
],
[
"New York",
16.2
],
[
"Ohio",
5.6
],
[
"Oklahoma",
3.2
],
[
"Oregon",
4.4
],
[
"Pennsylvania",
8.1
],
[
"Rhode Island",
4.4
],
[
"South Carolina",
3.4
],
[
"South Dakota",
1.4
],
[
"Tennessee",
3.8
],
[
"Texas",
9.8
],
[
"Utah",
2.2
],
[
"Virginia",
13
],
[
"Vermont",
2.2
],
[
"Washington",
9.1
],
[
"Wisconsin",
4
],
[
"West Virginia",
1.8
],
[
"Wyoming",
1
]
];
data.addColumn('string','State');
data.addColumn('number','Indian_American');
data.addRows(datajson);
return(data);
}
// jsDrawChart
function drawChartIndAm() {
var data = gvisDataIndAm();
var options = {};
options["width"] = 600;
options["height"] = 400;
options["region"] = "US";
options["displayMode"] = "regions";
options["resolution"] = "provinces";
options["colorAxis"] = {minValue: 0, maxValue: 150, colors:['grey', 'black', 'green', 'blue', 'violet']};
var chart = new google.visualization.GeoChart(
document.getElementById('IndAm')
);
chart.draw(data,options);
}
// jsDisplayChart
(function() {
var pkgs = window.__gvisPackages = window.__gvisPackages || [];
var callbacks = window.__gvisCallbacks = window.__gvisCallbacks || [];
var chartid = "geochart";
// Manually see if chartid is in pkgs (not all browsers support Array.indexOf)
var i, newPackage = true;
for (i = 0; newPackage && i < pkgs.length; i++) {
if (pkgs[i] === chartid)
newPackage = false;
}
if (newPackage)
pkgs.push(chartid);
// Add the drawChart function to the global list of callbacks
callbacks.push(drawChartIndAm);
})();
function displayChartIndAm() {
var pkgs = window.__gvisPackages = window.__gvisPackages || [];
var callbacks = window.__gvisCallbacks = window.__gvisCallbacks || [];
window.clearTimeout(window.__gvisLoad);
// The timeout is set to 100 because otherwise the container div we are
// targeting might not be part of the document yet
window.__gvisLoad = setTimeout(function() {
var pkgCount = pkgs.length;
google.load("visualization", "1", { packages:pkgs, callback: function() {
if (pkgCount != pkgs.length) {
// Race condition where another setTimeout call snuck in after us; if
// that call added a package, we must not shift its callback
return;
}
while (callbacks.length > 0)
callbacks.shift()();
} });
}, 100);
}
// jsFooter
</script>
<script type="text/javascript" src="https://www.google.com/jsapi?callback=displayChartIndAm"></script>
In states with big cities, the number of Indian Americans are more than the American Indians. Moreover, I am not sure whether the statewide totals include or exclude the Indian immigrants who are not citizens of the United States. Also, the spatial patterns at the county resolution are likely going to be different. Only when the Census Bureau websites are back online I can dig into this a little deeper.