skincancer | R Documentation |
The data describe the incidence of nonmelanoma skin cancer among women stratified by age in Minneapolis (St. Paul) and Dallas (Fort Worth).
data(skincancer)
A data frame with 16 rows and 4 variables:
a numeric vector giving the nonmelanoma skin cancer counts.
a factor giving the city to which correspond the skin cancer counts: "St.Paul" and "Ft.Worth".
a factor giving the age range to which correspond the skin cancer counts: "15-24", "25-34", "35-44", "45-54", "55-64", "65-74", "75-84" and "85+".
a numeric vector giving the population of women.
a numeric vector giving the midpoint of age range.
Kleinbaum D., Kupper L., Nizam A., Rosenberg E.S. (2013) Applied Regression Analysis and other Multivariable Methods, Fifth Edition, Cengage Learning, Boston.
data(skincancer)
dev.new()
barplot(1000*cases/population ~ city + ageC, beside=TRUE, col=c("yellow","blue"),
data=skincancer)
legend("topleft", legend=c("St.Paul","Ft.Worth"), title="City",
fill=c("yellow","blue"), bty="n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.