找回密码
 立即注册
查看: 5589|回复: 0

如何解决失去图形装置:improperly set or missing graphics device

[复制链接]
发表于 2015-9-19 18:21:38 | 显示全部楼层 |阅读模式
Error in get.current.chob() : improperly set or missing graphics device
#install.packages("quantmod")
rm(list=ls())
library(quantmod)
getSymbols(Symbols="^SSEC",from="1990-01-01",to="2013-6-30",src="yahoo")
#第一个参数表示股票号
# head(SSEC) #查看前6行
class(SSEC)
ccandleChart(x=SSEC["2012"],theme="white")
avg<-function(x) rowMeans(HLC(x))
AvgPrice<-newTA(FUN=avg,col="white",legend.name = "AvgPrice")
AvgPrice(on=1)

#help(package="quantmod")


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|R语言中文网

GMT+8, 2025-5-7 23:22 , Processed in 0.026725 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表