# NOT RUN {
data(hue)
## Second degree polynomial model with random intercept, slope and
## quadratic term
fm1<-lcc(dataset = hue, subject = "Fruit", resp = "H_mean",
method = "Method", time = "Time", qf = 2, qr = 2,
components=TRUE)
lccPlot(fm1, type="lcc")
lccPlot(fm1, type="lpc")
lccPlot(fm1, type="la")
## Runing all.plots = FALSE and saving plots as pdf
# }
# NOT RUN {
data(simulated_hue_block)
attach(simulated_hue_block)
fm2<-lcc(dataset = simulated_hue_block, subject = "Fruit",
resp = "Hue", method = "Method",time = "Time",
qf = 2, qr = 1, components = TRUE, covar = c("Block"),
time_lcc = list(n=50, from=min(Time), to=max(Time)))
ggsave("myplots.pdf",
lccPlot(fm2, type="lcc", control=list(all.plot=FALSE)))
# }
Run the code above in your browser using DataLab