nzc                   package:VGAM                   R Documentation

_C_h_i_n_e_s_e _P_o_p_u_l_a_t_i_o_n _i_n _N_e_w _Z_e_a_l_a_n_d _1_8_6_7-_2_0_0_1

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     data(nzc)

_F_o_r_m_a_t:

     A data frame with 26 observations on the following 4 variables.

     '_y_e_a_r' Year. 

     '_m_a_l_e' Number of Chinese males. 

     '_f_e_m_a_l_e' Number of Chinese females. 

     '_n_z' Total number in the New Zealand population. 

_D_e_t_a_i_l_s:

     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.

_R_e_f_e_r_e_n_c_e_s:

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

_E_x_a_m_p_l_e_s:

     ## 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)

