path_curves(tourr)
path_curves()所属R语言包:tourr
Draw the path that the geodesics took.
绘制了测地线的路径。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This computes the projected values of each observation at each step, and allows you to recreate static views of the animated plots.
各观测的每一步计算的预测值,并允许您重新创建的动画图的静态视图。
用法----------Usage----------
path_curves(history, data = attr(history, "data"))
参数----------Arguments----------
参数:history
list of bases produced by save_history (or otherwise)
名单的碱基save_history(或以其他方式)
参数:data
dataset to be projected on to bases
数据集被投影到碱基
实例----------Examples----------
path1d <- save_history(flea[, 1:6], grand_tour(1), 10)
path2d <- save_history(flea[, 1:6], grand_tour(2), 10)
if (require("ggplot2")) {
plot(path_curves(path1d))
plot(path_curves(interpolate(path1d)))
plot(path_curves(path2d))
plot(path_curves(interpolate(path2d)))
# Instead of relying on the built in plot method, you might want to[而不是依靠内置的作图方法,你可能想]
# generate your own. Here are few examples of alternative displays:[生成你自己的。这里有几个例子替代显示:]
df <- path_curves(path2d)
qplot(step, value, data = df, group = obs:var, geom = "line", colour=var) + facet_wrap( ~ obs)
library(reshape2)
qplot(`1`, `2`, data = dcast(df, ... ~ var)) +
facet_wrap( ~ step) +
coord_equal()
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|