Learn R Programming

openintro (version 2.4.0)

possum: Possums in Australia and New Guinea

Description

Data representing possums in Australia and New Guinea. This is a copy of the data set by the same name in the DAAG package, however, the data set included here includes fewer variables.

Usage

possum

Arguments

Format

A data frame with 104 observations on the following 8 variables.

site

The site number where the possum was trapped.

pop

Population, either Vic (Victoria) or other (New South Wales or Queensland).

sex

Gender, either m (male) or f (female).

age

Age.

head_l

Head length, in mm.

skull_w

Skull width, in mm.

total_l

Total length, in cm.

tail_l

Tail length, in cm.

Examples

Run this code
library(ggplot2)

# Skull width vs. head length
ggplot(possum, aes(x = head_l, y = skull_w)) +
  geom_point()

# Total length vs. sex
ggplot(possum, aes(x = total_l, fill = sex)) +
  geom_density(alpha = 0.5)

Run the code above in your browser using DataLab