liupeng23的个人博客分享 http://blog.sciencenet.cn/u/liupeng23

博文

R&Rstudio绘图求教

已有 2623 次阅读 2019-5-8 20:51 |系统分类:科研笔记

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)




https://blog.sciencenet.cn/blog-3306552-1177905.html

上一篇:卫星、遥感以及再分析数据
下一篇:泰勒图--matlab
收藏 IP: 1.185.11.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-11-13 14:20

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部