~ubuntu-branches/ubuntu/trusty/r-cran-vgam/trusty

« back to all changes in this revision

Viewing changes to man/nzc.Rd

  • Committer: Package Import Robot
  • Author(s): Chris Lawrence
  • Date: 2011-11-04 13:13:06 UTC
  • mfrom: (1.2.9)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20111104131306-w9fd83i51rw60gxf
Tags: upstream-0.8-4
ImportĀ upstreamĀ versionĀ 0.8-4

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
\description{
6
6
  The  Chinese population in New Zealand from 1867 to 2001,
7
7
  along with the whole of the New Zealand population.
 
8
 
8
9
}
9
10
\usage{data(nzc)}
10
11
\format{
19
20
\details{
20
21
  The NZ total for the years 1867 and 1871 exclude the Maori population.
21
22
  The second value of 4583 looks erroneous, as seen by the plot below.
 
23
 
 
24
 
22
25
}
23
26
%\source{
24
27
%}
25
28
\references{
 
29
 
26
30
  Page 6 of \emph{Aliens At My Table: Asians as New Zealanders see them}
27
31
  by M. Ip and N. Murphy,
28
32
  (2005), Penguin.
 
33
 
 
34
 
29
35
}
30
36
\examples{
31
 
\dontrun{
32
 
with(nzc, plot(year, female/(male+female), type="b", ylab="Proportion",
33
 
               main="Proportion of NZ Chinese that are female",
34
 
               col="blue", las=1))
35
 
abline(h=0.5, lty="dashed")
 
37
\dontrun{ plot(female/(male+female) ~ year, nzc, type = "b",
 
38
     ylab = "Proportion", col = "blue", las = 1,
 
39
     main = "Proportion of NZ Chinese that are female")
 
40
abline(h = 0.5, lty = "dashed")
36
41
 
37
 
with(nzc, plot(year, 100*(male+female)/nz, type="b", ylab="Percent",
38
 
               ylim=c(0, max(100*(male+female)/nz)), col="blue", las=1,
39
 
               main="Percent of NZers that are Chinese"))
40
 
abline(h=0, lty="dashed")
41
 
}
 
42
plot(100*(male+female)/nz ~ year, nzc, type = "b", ylab = "Percent",
 
43
     ylim = c(0, max(100*(male+female)/nz)), col = "blue", las = 1,
 
44
     main = "Percent of NZers that are Chinese")
 
45
abline(h = 0, lty = "dashed") }
42
46
}
43
47
\keyword{datasets}