splom(lattice)
splom()所属R语言包:lattice
Scatter Plot Matrices
散点图矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Draw Conditional Scatter Plot Matrices and Parallel Coordinate Plots
绘制有条件的散点图矩阵和平行坐标图
用法----------Usage----------
splom(x, data, ...)
parallel(x, data, ...)
## S3 method for class 'formula'[类formula的方法]
splom(x,
data,
auto.key = FALSE,
aspect = 1,
between = list(x = 0.5, y = 0.5),
panel = lattice.getOption("panel.splom"),
prepanel,
scales,
strip,
groups,
xlab,
xlim,
ylab = NULL,
ylim,
superpanel = lattice.getOption("panel.pairs"),
pscales = 5,
varnames = NULL,
drop.unused.levels,
...,
lattice.options = NULL,
default.scales,
default.prepanel = lattice.getOption("prepanel.default.splom"),
subset = TRUE)
## S3 method for class 'formula'[类formula的方法]
parallel(x,
data,
auto.key = FALSE,
aspect = "fill",
between = list(x = 0.5, y = 0.5),
panel = lattice.getOption("panel.parallel"),
prepanel,
scales,
strip,
groups,
xlab = NULL,
xlim,
ylab = NULL,
ylim,
varnames = NULL,
horizontal.axis = TRUE,
drop.unused.levels,
...,
lattice.options = NULL,
default.scales,
default.prepanel = lattice.getOption("prepanel.default.parallel"),
subset = TRUE)
## S3 method for class 'data.frame'
splom(x, data = NULL, ..., groups = NULL, subset = TRUE)
## S3 method for class 'matrix'
splom(x, data = NULL, ..., groups = NULL, subset = TRUE)
## S3 method for class 'matrix'
parallel(x, data = NULL, ..., groups = NULL, subset = TRUE)
## S3 method for class 'data.frame'
parallel(x, data = NULL, ..., groups = NULL, subset = TRUE)
参数----------Arguments----------
参数:x
The object on which method dispatch is carried out. For the "formula" method, a formula describing the structure of the plot, which should be of the form ~ x | g1 * g2 * ..., where x is a data frame or matrix. Each of g1,g2,... must be either factors or shingles. The conditioning variables g1, g2, ... may be omitted. For the data.frame methods, a data frame.
对象的方法调度进行。为"formula"方法,公式描述的图结构的形式,这应该是~ x | g1 * g2 * ...,其中x是一个数据框或矩阵。每个g1,g2,...必须是因素或带状疱疹。调理变量g1, g2, ...可以省略。对于data.frame方法,一个数据框。
参数:data
For the formula methods, an optional data frame in which variables in the formula (as well as groups and subset, if any) are to be evaluated.
formula方法,一个可选的数据框在公式中的变量(以及groups和subset,如果有的话)进行评估。
参数:aspect
aspect ratio of each panel (and subpanel), square by default for splom.
每个小组的宽高比(和子面板),默认为splom平方米。
参数:between
to avoid confusion between panels and subpanels, the default is to show the panels of a splom plot with space between them.
面板和子面板之间,以避免混乱,默认是显示面板一个splom图与他们之间的空间。
参数:panel
Usual interpretation for parallel, namely the function that creates the display within each panel. For splom, the terminology is slightly complicated. The role played by the panel function in most other high-level functions is played here by the superpanel function, which is responsible for the display for each conditional data subset. panel is simply an argument to the default superpanel function panel.pairs, and is passed on to it unchanged. It is used there to create each pairwise display. See panel.pairs for more useful options.
parallel通常的解释,即创建每个面板内的显示功能。 splom,稍微复杂术语。 superpanel功能,这是负责每个子集条件的数据显示,在大多数其他高级功能面板功能所扮演的角色是在这里发挥。 panel简直是superpanel函数panel.pairs,并通过它不变的默认的参数。它被用来创建每个成对显示。看到panel.pairs更多有用的选项。
参数:superpanel
function that sets up the splom display, by default as a scatterplot matrix.
功能设置splom显示,默认情况下,作为一个散点图矩阵。
参数:pscales
a numeric value or a list, meant to be a less functional substitute for the scales argument in xyplot etc. This argument is passed to the superpanel function, and is handled by the default superpanel function panel.pairs. The help page for the latter documents this argument in more detail.
一个数值或一个列表,为了是scales论证的功能较低的替代这种说法xyplot等传递给superpanel函数,是由默认superpanel处理功能panel.pairs。后者的帮助页文件更详细的这种说法。
参数:varnames
A character or expression vector or giving names to be used for the variables in x. By default, the column names of x.
字符或表达向量或给为用于x变量的名称。默认情况下,x的列名。
参数:horizontal.axis
logical indicating whether the parallel axes should be laid out horizontally (TRUE) or vertically (FALSE).
逻辑表明平行轴是否应规定出水平(TRUE)或垂直(FALSE)。
See xyplot
看到xyplot
参数:default.prepanel
Fallback prepanel function. See xyplot.
后备prepanel功能。看到xyplot。
参数:...
Further arguments. See corresponding entry in xyplot for non-trivial details.
进一步的论据。 xyplot非琐碎的细节,请参见相应的条目。
Details
详情----------Details----------
splom produces Scatter Plot Matrices. The role usually played by panel is taken over by superpanel, which takes a data frame subset and is responsible for plotting it. It is called with the coordinate system set up to have both x- and y-limits from 0.5 to ncol(z) + 0.5. The only built-in option currently available is panel.pairs, which calls a further panel function for each pair (i, j) of variables in z inside a rectangle of unit width and height centered at c(i, j) (see panel.pairs for details).
splom产生散点图矩阵。所扮演的角色通常由panelsuperpanel,这需要一个数据框的子集,并负责绘制接管。它被称为坐标系统的设立有两个X-0.5ncol(z) + 0.5Y-限额。内置唯一选项目前是panel.pairs,这就要求为每一对进一步面板功能(i, j)在变量z里面的矩形单元的宽度和高度集中在<X >(见c(i, j)详情)。
Many of the finer customizations usually done via arguments to high level function like xyplot are instead done by panel.pairs for splom. These include control of axis limits, tick locations and prepanel calcultions. If you are trying to fine-tune your splom plot, definitely look at the panel.pairs help page. The scales argument is usually not very useful in splom, and trying to change it may have undesired effects.
许多通常通过参数进行高层次的功能像xyplot细定制而是panel.pairssplom。这些措施包括控制轴的限制,刻度位置和prepanel calcultions的。如果您正试图微调splom图,绝对看panel.pairs帮助页。 scales参数通常是非常有用的splom,并试图改变它可能有不良影响。
parallel draws Parallel Coordinate Plots. (Difficult to describe, see example.)
parallel绘制平行坐标图。 (很难形容,看到的例子。)
These and all other high level Trellis functions have several arguments in common. These are extensively documented only in the help page for xyplot, which should be consulted to learn more detailed usage.
这些和所有其他高层次网格功能有几个共同的参数。这些被广泛记载,只有在帮助页xyplot,应谘询,以了解更详细的用法。
值----------Value----------
An object of class "trellis". The update method can be used to update components of the object and the print method (usually called by default) will plot it on an appropriate plotting device.
对象类"trellis"。 update方法可以用来更新的对象和print方法(通常称为默认情况下),将适当的绘图设备上绘制它的组成部分。
作者(S)----------Author(s)----------
Deepayan Sarkar <a href="mailtoeepayan.Sarkar@R-project.org">Deepayan.Sarkar@R-project.org</a>
参见----------See Also----------
xyplot, Lattice, panel.pairs, panel.parallel.
xyplot,Lattice,panel.pairs,panel.parallel。
举例----------Examples----------
super.sym <- trellis.par.get("superpose.symbol")
splom(~iris[1:4], groups = Species, data = iris,
panel = panel.superpose,
key = list(title = "Three Varieties of Iris",
columns = 3,
points = list(pch = super.sym$pch[1:3],
col = super.sym$col[1:3]),
text = list(c("Setosa", "Versicolor", "Virginica"))))
splom(~iris[1:3]|Species, data = iris,
layout=c(2,2), pscales = 0,
varnames = c("Sepal\nLength", "Sepal\nWidth", "etal\nLength"),
page = function(...) {
ltext(x = seq(.6, .8, length.out = 4),
y = seq(.9, .6, length.out = 4),
labels = c("Three", "Varieties", "of", "Iris"),
cex = 2)
})
parallel(~iris[1:4] | Species, iris)
parallel(~iris[1:4], iris, groups = Species,
horizontal.axis = FALSE, scales = list(x = list(rot = 90)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|