Learn R Programming

PASWR2 (version 1.0.5)

SDS4: M1 Motorspeedway Times

Description

The times recorded are those for 41 successive vehicles travelling northwards along the M1 motorway in England when passing a fixed point near Junction 13 in Bedfordshire on Saturday, March 23, 1985. After subtracting the times, the following 40 interarrival times reported to the nearest second are stored in SDS4 under the variable times.

Usage

SDS4

Arguments

Format

A data frame with 40 observations on the following variable:

  • times (interarrival times to the nearest second)

References

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.

Examples

Run this code
# NOT RUN {
ggplot(data = SDS4, aes(x = times)) + geom_histogram(binwidth = 2)
ggplot(data = SDS4, aes(x = times, y = ..density..)) + 
geom_histogram(binwidth = 2, color = "red", fill = "pink", alpha = 0.5) + 
geom_density(fill = "cornsilk", alpha = 0.5) + 
labs(x = "interarrival times to the nearest second", y = "")
# }

Run the code above in your browser using DataLab