Learn R Programming

segmented (version 2.0-0)

plant: Plan organ dataset

Description

The plant data frame has 103 rows and 3 columns.

Usage

data(plant)

Arguments

Format

A data frame with 103 observations on the following 3 variables:

y

measurements of the plant organ.

time

times where measurements took place.

group

three attributes of the plant organ, RKV, RKW, RWC.

Details

Three attributes of a plant organ measured over time where biological reasoning indicates likelihood of multiple breakpoints. The data are scaled to the maximum value for each attribute and all attributes are measured at each time.

Examples

Run this code
if (FALSE) {
data(plant)

lattice::xyplot(y~time,groups=group,auto.key=list(space="right"), data=plant)

o<-segreg(y~ group+seg(time, by=group, npsi=2), data=plant)
summary(o)

with(plant, plot(time, y))
plot(o, 1, add=TRUE)
plot(o, 2, add=TRUE, col=3)
plot(o, 3, add=TRUE, col=4)
}

Run the code above in your browser using DataLab