Learn R Programming

BSDA (version 1.01)

Weather94: Weather casualties in 1994

Description

Data for Exercise 1.30

Usage

Weather94

Arguments

Format

A data frame with 11 observations on the following 2 variables.

Weather.Type

a factor with levels Extreme Temp Flash flood Fog High wind Hurricane Lightning Other River flood Thunderstorm Tornado Winter weather

Number

a numeric vector

Examples

Run this code
# NOT RUN {
str(Weather94)
attach(Weather94)
names(Number) <- Weather.Type
barplot(Number,col="lightblue",las=2,cex.names=.65,main="Problem 1.30") 
# las=2 places bar names vertically
detach(Weather94)
# }

Run the code above in your browser using DataLab