panel.spline(lattice)
panel.spline()所属R语言包:lattice
Panel Function to Add a Spline Smooth
添加样条平滑的面板功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A predefined panel function that can be used to add a spline smooth based on the provided data.
一个预定义的面板功能,可以用来添加一个样条平滑根据所提供的数据。
用法----------Usage----------
panel.spline(x, y, npoints = 101,
lwd = plot.line$lwd,
lty = plot.line$lty,
col, col.line = plot.line$col,
type,
horizontal = FALSE, ...,
keep.data = FALSE,
identifier = "spline")
参数----------Arguments----------
参数:x, y
Variables defining the data to be used.
变量定义要使用的数据。
参数:npoints
The number of equally spaced points within the range of the predictor at which the fitted model is evaluated for plotting.
策划评估拟合模型的预测范围内的等距点的数量。
参数:lwd, lty, col, col.line
Graphical parameters for the added line. col.line overrides col.
增加线路的图形参数。 col.line覆盖col。
参数:type
Ignored. The argument is present only to make sure that an explicitly specified type argument (perhaps meant for another function) does not affect the display.
忽略。的说法是目前唯一以确保明确指定type参数(也许是另一个函数的意思)不影响显示。
参数:horizontal
A logical flag controlling which variable is to be treated as the predictor (by default x) and which as the response (by default y). If TRUE, the plot is "transposed" in the sense that y becomes the predictor and x the response. (The name "horizontal" may seem an odd choice for this argument, and originates from similar usage in bwplot).
控制逻辑标志变量是可作为预测治疗(默认x)和响应(默认y)。如果TRUE,该图“换位”在这个意义上,y成为预测和x响应。 (名称水平,似乎这种说法的一个奇怪的选择,并从类似的使用起源于bwplot)。
参数:keep.data
Passed on to smooth.spline. The default here (FALSE) is different, and results in the original data not being retained in the fitted spline model. It may be useful to set this to TRUE if the return value of panel.spline, which is the fitted model as returned by smooth.spline, is to be used for subsequent computations.
传递smooth.spline。这里默认(FALSE)是不同的,在不被保留在装样条模型的原始数据的结果。它可能是有用的设置TRUE如果panel.spline返回值,这是拟合模型由smooth.spline返回的,是要为后续计算中使用。
参数:...
Extra arguments, passed on to smooth.spline and panel.lines as appropriate.
额外的参数,传递给smooth.spline和panel.lines适当。
参数:identifier
A character string that is prepended to the names of grobs that are created by this panel function.
一个字符串,前面的名称,由本面板功能创建的grobs。
值----------Value----------
The fitted model as returned by smooth.spline.
拟合模型的返回smooth.spline的。
作者(S)----------Author(s)----------
Deepayan Sarkar <a href="mailtoeepayan.Sarkar@R-project.org">Deepayan.Sarkar@R-project.org</a>
参见----------See Also----------
Lattice, smooth.spline, prepanel.spline
格,smooth.spline,prepanel.spline
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|