全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1963 2
2015-06-04
请看如下代码plot(merge(as.zoo(USMacroG[,"consumption"]), fitted(cons_lm1),fitted(cons_lm2), 0, residuals(cons_lm1),
residuals(cons_lm2)), screens = rep(1:2, c(3, 3)),
lty = rep(1:3, 2), ylab = c("Fitted values", "Residuals"),
xlab = "Time", main = "")
上面的screens参数经过试验发现是分割图形的,具体怎么用,希望精通的同学指点


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-6-9 12:34:07
screens: factor (or coerced to factor) whose levels specify which graph each series is to be plotted in. screens=c(1,2,1) would plot series 1, 2 and 3 in graphs 1, 2 and 1. If not specified then 1 is used if plot.type="single" and seq_len(ncol(x)) otherwise.

其他参数可以参考:http://svitsrv25.epfl.ch/R-doc/library/zoo/html/plot.zoo.html

cheers
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-6-9 23:15:35
armstronglee 发表于 2015-6-9 12:34
screens: factor (or coerced to factor) whose levels specify which graph each series is to be plotted ...
谢谢回复,我得试试
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群