cities | R Documentation |
Population estimates for several Canadian cities.
cities
This data frame contains the following columns:
a factor, consisting of the city names
a factor with 5 levels (ATL=Atlantic, ON=Ontario, QC=Quebec, PR=Prairies, WEST=Alberta and British Columbia) representing the location of the cities
a numeric vector giving population in 1000's for 1992
a numeric vector giving population in 1000's for 1993
a numeric vector giving population in 1000's for 1994
a numeric vector giving population in 1000's for 1995
a numeric vector giving population in 1000's for 1996
Statistics Canada
cities$have <- factor((cities$REGION=="ON")|(cities$REGION=="WEST"))
plot(POP1996~POP1992, data=cities, col=as.integer(cities$have))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.