plot.soo_function(soobench)
plot.soo_function()所属R语言包:soobench
Plot a test function in 2D.
绘制一个2D测试功能。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plot a test function in 2D.
绘制一个2D测试功能。
用法----------Usage----------
## S3 method for class 'soo_function'
plot(x, lower = lower_bounds(x),
upper = upper_bounds(x), n = 10000L,
main = function_name(x), xlab = expression(x[1]),
ylab = expression(x[2]), log = FALSE, rank = FALSE,
show = c("image", "contour"), ...,
image_args = list(useRaster = TRUE),
contour_args = list())
参数----------Arguments----------
参数:x
Function to plot.
函数进行绘图。
参数:lower
Lower bounds of x1 and x2.
x1和x2的下界。
参数:upper
Upper bounds of x1 and x2.
x1和x2的上界。
参数:n
Number of locations at which to sample the function.
在采样函数的位置的数量。
参数:xlab
Label of x (x1) axes.
出版商的x轴(×1)。
参数:ylab
Label of y (x2) axes.
标签的y轴(X2)。
参数:main
Main title of plot.
主标题的图。
参数:log
If TRUE, the z axes is plotted on log scale.
如果TRUE,z轴绘制在对数刻度。
参数:rank
If TRUE, instead of the y values, their ranks are drawn.
如果TRUE,而不是y的值,它们的行列得出。
参数:show
A vector of parts to plot. Defaults to c("image", "contour") and can be any subset.
一个向量的部分图。默认为c("image", "contour")和可以任意子集。
参数:...
Ignored.
忽略。
参数:image_args
List of further arguments passed to image().
通过进一步的论据图像()。
参数:contour_args
List of further arguments passed to contour().
通过进一步的论据轮廓()。
(作者)----------Author(s)----------
Olaf Mersmann <a href="mailto lafm@datensplitter.net">olafm@datensplitter.net</a>
实例----------Examples----------
par(mfrow=c(2, 2))
f <- sphere_function(2)
plot(f)
plot(f, show="contour")
plot(f, rank=TRUE)
plot(f, log=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|