Last data update: 2014.03.03

R: Weather casualties in 1994
Weather94R Documentation

Weather casualties in 1994

Description

Data for Exercise 1.30

Usage

Weather94

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

Source

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Duxbury

Examples

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)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(BSDA)
Loading required package: e1071
Loading required package: lattice

Attaching package: 'BSDA'

The following object is masked from 'package:datasets':

    Orange

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/BSDA/Weather94.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Weather94
> ### Title: Weather casualties in 1994
> ### Aliases: Weather94
> ### Keywords: datasets
> 
> ### ** Examples
> 
> str(Weather94)
'data.frame':	11 obs. of  2 variables:
 $ Weather.Type: Factor w/ 11 levels "Extreme Temp",..: 2 8 6 10 5 1 11 9 4 3 ...
 $ Number      : int  59 32 69 69 9 81 31 17 12 3 ...
> 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)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>