lattice-methods(flowViz)
lattice-methods()所属R语言包:flowViz
Methods implementing Lattice displays for flow data
格流量数据显示方法实施
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Various methods implementing multipanel visualizations for flow data using infrastructure provided in the lattice package. The original generics for these methods are defined in lattice, and these S4 methods (mostly) dispatch on a formula and the data argument which must be of class flowSet or flowFrame. The formula has to be fairly basic: conditioning can be done using phenodata variables and channel names (the colnames slot) can be used as panel variables. See examples below for sample usage.
实施流动数据使用在格包提供的基础设施的多面板的可视化的各种方法。这些方法的原始泛型定义的晶格中,这些S4方法(主要),派遣一个公式data参数必须是类的flowSet或flowFrame。公式是相当基本的:空调可以做,使用phenodata变量和频道名称(colnames插槽),可用于面板变量。见下面的例子使用示例。
用法----------Usage----------
## methods for 'flowSet' objects
## S4 method for signature 'formula,flowSet'
qqmath(
x,
data,
xlab,
ylab,
f.value = function(n) ppoints(ceiling(sqrt(n))),
distribution = qnorm,
...)
## S4 method for signature 'formula,flowSet'
levelplot(
x,
data,
xlab,
ylab,
as.table = TRUE,
contour = TRUE,
labels = FALSE,
n = 50,
...)
## methods for 'flowFrame' objects
## S4 method for signature 'flowFrame,missing'
parallel(
x,
data,
reorder.by = function(x) var(x, na.rm = TRUE),
time = "Time",
exclude.time = TRUE,
...)
参数----------Arguments----------
参数:x
a formula describing the structure of the plot and the variables to be used in the display.
公式描述的图和结构要在显示器中使用的变量。
参数:data
a flowSet object that serves as a source of data.
flowSet对象作为数据源。
参数:xlab, ylab
Labels for data axes, with suitable defaults taken from the formula
数据轴的标签,采取合适的默认值从公式
参数:f.value, distribution
number of points used in Q-Q plot, and the reference distribution used. See qqmath for details.
QQ图中的点,所用的参考分布的数量。看到qqmath详情。
参数:n
the number of bins on each axis to be used when evaluating the density
每个轴箱的数量,密度进行评估时,要使用
参数:as.table, contour, labels
These arguments are passed unchanged to the corresponding methods in lattice, and are listed here only because they provide different defaults. See documentation for the original methods for details.
这些参数被传递不变,在晶格中的相应的方法,这里列出的仅仅是因为他们提供不同的默认值。有关详细信息,请参阅原始方法的文件。
参数:time
A character string giving the name of the column recording time.
一个字符串,列录音时间的名称。
参数:exclude.time
logical, specifying whether to exclude the time variable from a scatter plot matrix or parallel coordinates plot. It is rarely meaningful not to do so.
逻辑,指定是否要排除从时间变量散点图矩阵或平行坐标图。不这样做,这是很少有意义。
参数:reorder.by
a function, which is applied to each column. The columns are ordered by the results. Reordering can be suppressed by setting this to NULL.
一个功能,这是适用于每个列。列的排序结果。重新排序,可以抑制设置NULL。
参数:...
more arguments, usually passed on to the underlying lattice methods.
更多的参数,通常传递到底层的格子方法。
Details
详情----------Details----------
Not all standard lattice arguments will have the intended effect, but many should. For a fuller description of possible arguments and their effects, consult documentation on lattice (Trellis docs would also work for the fundamentals).
并非所有标准的晶格参数将产生预期的效果,但很多应该。一个可能的参数和它们的影响有更全面的描述,咨询文件格(文档网格,也将工作的基础)。
方法----------Methods----------
qqmath signature(x = "formula", data = "flowSet"): creates theoretical quantile plots of a given channel, with one or more samples per panel
qqmathsignature(x = "formula", data = "flowSet"):创建一个给定的通道理论位数的图,每块面板的一个或多个样品
levelplot signature(x = "formula", data = "flowSet"): similar to the xyplot method, but plots estimated density (using kde2d) with a common z-scale and an optional color key.
levelplotsignature(x = "formula", data = "flowSet"):xyplot方法类似,但图估计密度(使用kde2d)有一个共同的Z-级和一个可选的颜色键。
parallel signature(x = "flowFrame", data = "missing"): draws a parallel coordinates plot of all channels (excluding time, by default) of a flowFrame object. This is rarely useful without transparency, but that is currently only possible with the pdf device (and perhaps the aqua device as well).
并行signature(x = "flowFrame", data = "missing"):平行坐标图绘制flowFrame对象的所有通道(不计时间,默认情况下)。这是很少有用的,但缺乏透明度,是目前唯一可能与pdf设备(也许旱厕设备以及)。
举例----------Examples----------
data(GvHD)
qqmath( ~ `FSC-H` | factor(Patient), GvHD,
grid = TRUE, type = "l",
f.value = ppoints(100))
## contourplot of bivariate density:[#contourplot二元密度:]
require(colorspace)
YlOrBr <- c("#FFFFD4", "#FED98E", "#FE9929", "#D95F0E", "#993404")[FFFFD4“,”#FED98E“,”#FE9929“,”#D95F0E“,”#993404“)]
colori <- colorRampPalette(YlOrBr)
levelplot(asinh(`SSC-H`) ~ asinh(`FSC-H`) | Visit + Patient, GvHD, n = 20,
col.regions = colori(50), main = "Contour Plot")
## parallel coordinate plots[#并行协调图]
parallel(GvHD[["s6a01"]])
## Not run: [#无法运行:]
## try with PDF device[#尝试用PDF格式的设备]
parallel(GvHD[["s7a01"]], alpha = 0.01)
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|