|
Rstudio调用gamlss包绘图
出图的线条大小和颜色,坐标轴名称如何调整呢?
代码和绘图如下:
> library("gamlss")
> data("abdom")
> plot(y ~ x, data = abdom, col = "blue", xlab = "age", ylab = "circumference")
> abd0 <- gamlss(y ~ poly(x, 3), data = abdom, family = NO)
> summary(abd0)
> abd00 <- gamlss(y ~ x + I(x^2) + I(x^3), data = abdom, family = NO)
> summary(abd00)
> abd1 <- gamlss(y ~ cs(x, df = 3), data = abdom, family = NO)
> fitted(abd1, "sigma")[1]
> predict(abd1, what = "sigma", type = "response")[1]
> abd2 <- gamlss(y ~ cs(x, 3), sigma.formula = ~cs(x, 3), data = abdom, family = NO)
> plot(abd2)
wp(abd2)
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-13 14:20
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社