DIA.Open 当日开盘价格
DIA.High 当日最高价格
DIA.Low 当日最低价格
DIA.Close 当日收盘价格
DIA.Volume 当日股票交易量
DIA.Adjusted 当日调整后的价格
我举个例子供你参考:>install.packages('quantmod') # 安装安装quantmod包
>require(quantmod)#引用quantmod包
>getSymbols("GOOG",src="yahoo",from="2013-01-01", to='2013-04-24') #从雅虎财经获取google的股票数据
>chartSeries(GOOG,up.col='red',dn.col='green') #显示K线图