futures-plot(schwartz97)
futures-plot()所属R语言包:schwartz97
Visualization of Futures Data
期货数据的可视化
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Visualization of historical commodity futures prices and remaining time to maturity. This function is intended to be fed with the futures data contained in this package (see futures-data).
可视化的历史大宗商品期货价格至到期日的剩余时间。此功能的目的是要喂期货在此包中包含的数据(见futures-data)。
用法----------Usage----------
futuresplot(futures, type = c("forward.curve", "ttm"), ...)
参数----------Arguments----------
参数:futures
A list with elements price and ttm. Usually an element of futures.
Alist的元素price和ttm。通常元素的futures。
参数:type
What shall be plotted. "forward.curve" or "ttm" (time to maturity).
我们应绘制。 "forward.curve"或"ttm"(距到期日时间)。
参数:...
Optional arguments passed to plot.
可选参数传递给plot。
(作者)----------Author(s)----------
Philipp Erb, David Luethi, Juri Hinz
参见----------See Also----------
futures-data
futures-data
实例----------Examples----------
data(futures)
## Plot time to maturity of corn data[号地的时间来成熟的玉米数据]
futuresplot(futures$corn, type = "ttm")
## Plot forward curves of wheat data since Jan 2010[号地的小麦数据自2010年1月远期曲线]
wheat.2010 <- lapply(futures$wheat,
function(x)x[as.Date(rownames(x)) > "2010-01-01",])
futuresplot(wheat.2010, type = "forward.curve")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|