Learn R Programming

VGAM (version 0.8-2)

nzc: Chinese Population in New Zealand 1867--2001 Data

Description

The Chinese population in New Zealand from 1867 to 2001, along with the whole of the New Zealand population.

Usage

data(nzc)

Arguments

Details

The 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.

References

Page 6 of Aliens At My Table: Asians as New Zealanders see them by M. Ip and N. Murphy, (2005), Penguin.

Examples

Run this code
with(nzc, plot(year, female/(male+female), type="b", ylab="Proportion",
               main="Proportion of NZ Chinese that are female",
               col="blue", las=1))
abline(h=0.5, lty="dashed")

with(nzc, plot(year, 100*(male+female)/nz, type="b", ylab="Percent",
               ylim=c(0, max(100*(male+female)/nz)), col="blue", las=1,
               main="Percent of NZers that are Chinese"))
abline(h=0, lty="dashed")

Run the code above in your browser using DataLab