post.rpart(rpart)
post.rpart()所属R语言包:rpart
PostScript Presentation Plot of an Rpart Object
的软件rpart对象的PostScript演示图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Generates a PostScript presentation plot of an rpart object.
生成一个的的PostScript介绍图的rpart对象。
用法----------Usage----------
post(tree, ...)
## S3 method for class 'rpart'
post(tree, title.,
filename = paste(deparse(substitute(tree)), ".ps", sep = ""),
digits = getOption("digits") - 3, pretty = TRUE,
use.n = TRUE, horizontal = TRUE, ...)
参数----------Arguments----------
参数:tree
fitted model object of class rpart. This is assumed to be the result of some function that produces an object with the same named components as that returned by the rpart function.
拟合模型对象的类rpart。这被认为是一些函数,该函数产生的对象具有相同的命名组件rpart函数返回的结果。
参数:title.
a title which appears at the top of the plot. By default, the name of the rpart endpoint is printed out.
一个标题出现在顶部的图。默认情况下,名称rpart端点被打印出来。
参数:filename
ASCII file to contain the output. By default, the name of the file is the name of the object given by rpart (with the suffix .ps added). If filename = "", the plot appears on the current graphical device.
ASCII文件包含输出。默认情况下,该文件的名称是rpart(带后缀.ps添加)提供的对象的名称。如果filename = "",图上会出现当前的图形设备。
参数:digits
number of significant digits to include in numerical data.
数量巨大的数字包括在数值数据。
参数:pretty
an integer denoting the extent to which factor levels will be abbreviated in the character strings defining the splits; (0) signifies no abbreviation of levels. A NULL signifies using elements of letters to represent the different factor levels. The default (TRUE) indicates the maximum possible abbreviation.
的整数,表示在何种程度上因子水平将缩写中的字符串定义分割;(0)表示没有水平缩写。 ANULL表示使用元素的字母代表不同的因子水平。默认值(TRUE)表示最大可能的缩写。
参数:use.n
Logical. If TRUE (default), adds to label (\#events level1/ \#events level2/etc. for method class, n for method anova, and \#events/n for methods poisson and exp).
逻辑。如果TRUE(默认),增加了标签(\#事件的方法class,n法anova“和\#1级/ \#的事件level2/etc。事件/方法n为poisson和exp)。
参数:horizontal
Logical. If TRUE (default), plot is horizontal. If FALSE, plot appears as landscape.
逻辑。如果TRUE(默认),图水平。如果FALSE,图出现的景观。
参数:...
other arguments to the postscript function.
的参数postscript功能。
Details
详细信息----------Details----------
The plot created uses the functions plot.rpart and text.rpart (with the fancy option). The settings were chosen because they looked good to us, but other options may be better, depending on the rpart object. Users are encouraged to write their own function containing favorite options.
创建该图的使用功能plot.rpart和text.rpart(fancy选项)。设置被选中,因为他们看起来很不错,但其他选项可能会更好,根据rpart对象。我们鼓励用户写自己的功能,喜欢的选项。
副作用----------Side Effects----------
a plot of rpart is created using the postscript driver, or the current device if filename = "".
一块rpart是使用postscript驱动程序,或如果当前设备filename = ""的。
参见----------See Also----------
plot.rpart, rpart, text.rpart, abbreviate
plot.rpart,rpart,text.rpart,abbreviate
实例----------Examples----------
z.auto <- rpart(Mileage ~ Weight, car.test.frame)
post(z.auto, file = "") # display tree on active device[显示的有源器件的树]
# now construct postscript version on file "pretty.ps"[现在建设PostScript版本文件“pretty.ps”]
# with no title[没有标题]
post(z.auto, file = "pretty.ps", title = " ")
z.hp <- rpart(Mileage ~ Weight + HP, car.test.frame)
post(z.hp)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|