Learn R Programming

BSDA (version 1.01)

Sunspot: Wolfer sunspot numbers from 1700 through 2000

Description

Data for Example 1.7

Usage

Sunspot

Arguments

Format

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

year

a numeric vector

sunspots

a numeric vector

Examples

Run this code
# NOT RUN {
str(Sunspot)
attach(Sunspot)
plot(year,sunspots,type="l",main="Yearly Sunspots")    # Using standard plot
library(lattice)
xyplot(sunspots ~ 1700:2000, xlab = "", type = "l",main="Yearly Sunspots")
xyplot(sunspots ~ 1700:2000, xlab = "", type = "l", aspect="xy",
main="Yearly Sunspots")
detach(Sunspot)
# }

Run the code above in your browser using DataLab