| plant {segmented} | R Documentation |
Plan organ dataset
Description
The plant data frame has 103 rows and 3 columns.
Usage
data(plant)
Format
A data frame with 103 observations on the following 3 variables:
ymeasurements of the plant organ.
timetimes where measurements took place.
groupthree 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.
Source
The data have been kindly provided by Dr Zongjian Yang at School of Land, Crop and Food Sciences, The University of Queensland, Brisbane, Australia.
Examples
## Not run:
data(plant)
lattice::xyplot(y~time,groups=group,auto.key=list(space="right"), data=plant)
o<-segreg(y~ 0+group+seg(time, by=group, npsi=2), data=plant)
summary(o)
par(mfrow=c(1,2))
plot(y~time, data=plant)
plot(o, term=1:3, add=TRUE, leg=NA, psi.lines=TRUE) #add the lines to the current plot
plot(o, term=1:3, col=3:5, res.col=3:5, res=TRUE, leg="bottomright")
## End(Not run)
[Package segmented version 2.1-1 Index]