
plotdeplot.lmscreg(answer, y.arg, add.arg = FALSE,
xlab = "", ylab = "density", xlim = NULL, ylim = NULL,
llty.arg = par()$lty, col.arg = par()$col,
llwd.arg = par()$lwd, ...)
deplot.???
where ???
is the name of the
lms.yjn
.
See below for details.par
.par
.lty
argument of par
.col
argument of par
.lwd
argument of par
.plot
function
when setting up the entire plot. Useful arguments here include
main
and las
.answer
, which has componentsnewdata
above from
the argument list of deplot.lmscreg
,
or a one-row
data frame constructed out of the x0
argument.y.arg
above.y.arg
.
Documentation accompanying the
deplot.lmscreg
.fit = vgam(BMI ~ s(age, df = c(4,2)), fam = lms.bcn(zero = 1), data = bminz)
y = seq(15, 43, by = 0.25)
deplot(fit, x0 = 20, y = y, xlab = "BMI", col = "green", llwd = 2,
main = "BMI distribution at ages 20 (green), 40 (blue), 60 (orange)")
deplot(fit, x0 = 40, y = y, add = TRUE, col = "blue", llwd = 2)
deplot(fit, x0 = 60, y = y, add = TRUE, col = "orange", llwd = 2) -> aa
names(aa@post$deplot)
aa@post$deplot$newdata
head(aa@post$deplot$y)
head(aa@post$deplot$density)
Run the code above in your browser using DataLab