openintro (version 1.3)

smoking: UK Smoking Data

Description

Survey data on smoking habits from the UK. The data set can be used for analyzing the demographic characteristics of smokers and types of tobacco consumed.

Usage

data(smoking)

Arguments

source

http://www.stats4schools.gov.uk/large_datasets/smoking/default.asp

Examples

Run this code
data(smoking)
str(smoking)
histPlot(smoking$amtWeekends)
histPlot(smoking$amtWeekdays)
table(smoking$smoke, smoking$gender)
mosaicplot(~ smoke + maritalStatus, data = smoking)
barplot(sort(table(smoking$maritalStatus), decreasing = TRUE))

Run the code above in your browser using DataLab