| nzc {VGAM} | R Documentation |
The Chinese population in New Zealand from 1867 to 2001, along with the whole of the New Zealand population.
data(nzc)
A data frame with 26 observations on the following 4 variables.
yearmalefemalenzThe NZ total for the years 1867 and 1871 exclude the Maori population. The second value of 4583 looks erroneous, as seen by the plot below.
Page 6 of Aliens At My Table: Asians as New Zealanders see them by M. Ip and N. Murphy, (2005), Penguin.
## Not run:
data(nzc)
attach(nzc)
plot(year, female/(male+female), type="b", ylab="Proportion",
main="Proportion of Chinese that are female",
col="blue", las=1)
abline(h=0.5, lty="dashed")
plot(year, 100*(male+female)/nz, type="b", ylab="Percent",
ylim=c(0, max(100*(male+female)/nz)), col="blue",
main="Percent of New Zealanders that are Chinese", las=1)
abline(h=0, lty="dashed")
detach(nzc)
## End(Not run)