plotObjectivePairs(TunePareto)
plotObjectivePairs()所属R语言包:TunePareto
Plot a matrix of Pareto front panels
帕累托前面板绘制一个矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plots a matrix of Pareto front panels for each pair of objectives. The plot for n objectives consists of n x n panels, where the panel in row i and column j depicts the Pareto fronts of the i-th and the j-th objective. Each of the panels is drawn in the same way as plotParetoFronts2D.
绘制一个矩阵帕累托前面板为每双目标。图n目标包括n x n板,面板行i和列j描绘了帕累托方面的个i和j个目标。每个面板绘制以同样的方式作为plotParetoFronts2D。
用法----------Usage----------
plotObjectivePairs(tuneParetoResult,
drawLabels = TRUE,
drawBoundaries = TRUE,
labelPos = 4,
fitLabels=TRUE,
cex.conf=0.5,
lty.fronts=1,
pch.fronts=8,
col.fronts,
...)
参数----------Arguments----------
参数:tuneParetoResult
An object of class TuneParetoResult as returned by tunePareto.
类的一个对象TuneParetoResult返回的tunePareto。
参数:drawLabels
If set to true, the descriptions of the configurations are printed next to the points in the plot.
如果设置为true,则说明印在图中的点旁边的配置。
参数:drawBoundaries
If set to true, the upper or lower objective limits supplied in the objectiveBoundaries parameter of tunePareto are drawn as horizontal and vertical lines.
如果设置为true,上部或下部的客观限制提供objectiveBoundariestunePareto参数,绘制水平线和垂直线。
参数:labelPos
The position of the configuration labels in the plot (if drawLabels is true). Values of 1, 2, 3 and 4 denote positions below, to the left of, above and to the right of the points on the Pareto fronts.
在图中的配置标签的位置(如果drawLabels是真实的)。的1,2,3和4的值表示的位置,左侧的,帕累托各条战线上的点的上方和右侧。
参数:fitLabels
If this parameter is true (and drawLabels is true), overlapping or partially hidden configuration labels are removed from the plot to improve the readability of the remaining labels.
如果此参数为true(和drawLabels是真实的),重叠或部分隐藏的配置标签,从图中移除剩余的标签,以提高可读性。
参数:cex.conf
The size of the configuration labels in the plots (if drawLabels is true).
在图的配置标签(drawLabels如果是真实的)的大小。
参数:lty.fronts
A vector of line types to use for the Pareto fronts. By default, straight lines are drawn for all fronts.
的矢量线的类型,使用的帕累托方面。默认情况下,笔直的线条绘制各方面。
参数:pch.fronts
A vector of symbols to use for points on the Pareto fronts. All points on the same front will have the same symbol. By default, an asterisk is used.
一个向量的符号使用点帕累托方面。相同的前部上的所有点有相同的符号。默认情况下,使用一个星号。
参数:col.fronts
A vector of colors to use for the Pareto fronts. By default, a predefined set of colors is used.
向量的颜色使用的帕累托方面。默认情况下,使用一组预定义的颜色。
参数:...
Further graphical parameters to be passed to the plot function.
进一步的图形参数被传递到plot功能。
值----------Value----------
This function does not have a return value.
这个函数没有返回值。
参见----------See Also----------
tunePareto, plotParetoFronts2D, plotDominationGraph
tunePareto,plotParetoFronts2D,plotDominationGraph
实例----------Examples----------
# optimize the 'cost' parameter of an SVM according[优化的“成本”根据参数的SVM]
# to CV error, CV error variance, and CV Specificity [CV CV错误,误差方差,和CV特异性]
# on two classes of the 'iris' data set[两个班的IRIS数据集]
r <- tunePareto(data = iris[, -ncol(iris)],
labels = iris[, ncol(iris)],
classifier = tunePareto.svm(),
cost=c(0.001,0.005,0.01,0.05,0.1,0.5,1,5,10,50),
objectiveFunctions=list(cvError(10, 10),
cvErrorVariance(10, 10),
cvSpecificity(10, 10, caseClass="virginica")))
# plot the matrix of Pareto fronts[绘制的矩阵帕累托方面]
plotObjectivePairs(r)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|