plot.tree.sequence(tree)
plot.tree.sequence()所属R语言包:tree
Plot a Tree Sequence
绘制一个树序列
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Allows the user to plot a tree sequence.
允许用户绘制树序列。
用法----------Usage----------
## S3 method for class 'tree.sequence'
plot(x, ..., type = "l", ylim = range(x$dev),
order = c("increasing", "decreasing"))
参数----------Arguments----------
参数:x
object of class tree.sequence. This is assumed to be the result of some function that produces an object with the same named components (size, deviance, k) as that returned by prune.tree.
对象类tree.sequence。这被认为是一些功能,产生的结果返回size对象与同一个命名的组件(deviance,k,prune.tree)。
参数:order
of size on the plot. Use "decreasing" for the natural ordering of k and the amount of pruning. Only the first character is needed.
size的图。使用"decreasing"的自然顺序k和修剪量。只有第一个字符是必要的。
参数:type, ylim, ...
graphical parameters.
图形参数。
Details
详细信息----------Details----------
This function is a method for the generic function plot() for class tree.sequence. It can be invoked by calling plot(x) for an object x of the appropriate class, or directly by calling plot.tree.sequence(x) regardless of the class of the object.
这个函数是一个方法的通用函数plot()类tree.sequence。它可以调用是通过调用plot(x)的对象x适当的类,或直接致电plot.tree.sequence(x)的类的对象。
副作用----------Side Effects----------
Plots deviance or number of misclassifications (or total loss) versus size for a sequence of trees.
图解越轨或错误分类数(或总损失)与大小为一个序列的树木。
实例----------Examples----------
data(cpus, package="MASS")
cpus.ltr <- tree(log(perf) ~ syct + mmin + mmax + cach + chmin + chmax,
data = cpus)
plot(prune.tree(cpus.ltr))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|