panel.smoothScatter 位于 lattice 包(package)。 说明
此函数允许用户将smoothScatter 绘图放置在点阵图形中。
用法
panel.smoothScatter(x, y = NULL,
                    nbin = 64, cuts = 255,
                    bandwidth,
                    col.regions,
                    colramp,
                    nrpoints = 100,
                    transformation = function(x) x^0.25,
                    pch = ".",
                    cex = 1, col="black",
                    range.x,
                    ...,
                    raster = FALSE,
                    subscripts,
                    identifier = "smoothScatter")
参数
x | 
 包含 x-values 的数值向量或包含 x 和 y 值的 n x 2 矩阵。  | 
y | 
 包含y-values的数值向量(可选)。   | 
nbin | 
 长度为 1(对于两个方向)或 2(分别对于 x 和 y)的数值向量,包含用于密度估计的等距网格点的数量。  | 
cuts | 
 定义颜色渐变的切割次数  | 
bandwidth | 
 数值向量:平滑带宽。如果丢失,这些函数会提出或多或少有用的猜测。然后该参数被传递给函数   | 
col.regions | 
 颜色的字符向量,或生成此类向量的函数。默认为当前主题的  | 
colramp | 
 函数接受整数   | 
nrpoints | 
 长度为 1 的数值向量,给出要叠加在密度图像上的点数。将绘制区域密度最低区域的前  | 
transformation | 
 将密度标度映射到色标的函数。  | 
pch , cex | 
 显示屏中显示的   | 
range.x | 
 有关详细信息,请参阅  | 
col | 
 
  | 
... | 
 传递给   | 
raster | 
 逻辑性;如果使用  | 
subscripts | 
 被忽略,但在某些情况下对于处理...是必要的。将来可能会被删除。  | 
identifier | 
 附加到由此面板函数创建的 grobs 名称之前的字符串。  | 
细节
这通过用 grid-compatible 替换标准图形调用来复制 smoothScatter 函数的显示部分。
值
该函数因其副作用而被调用,即在图形设备上生成适当的绘图。
例子
ddf <- as.data.frame(matrix(rnorm(40000), ncol = 4) + 1.5 * rnorm(10000))
ddf[, c(2,4)] <- (-ddf[, c(2,4)])
xyplot(V1 ~ V2 + V3, ddf, outer = TRUE,
       panel = panel.smoothScatter, aspect = "iso")
## argument to panel.levelplot
xyplot(V1 ~ V2, ddf, panel = panel.smoothScatter, cuts = 10,
       region.type = "contour")
splom(ddf, panel = panel.smoothScatter, nbin = 64, raster = TRUE)
作者
Deepayan Sarkar deepayan.sarkar@r-project.org
相关用法
- R panel.spline 添加样条平滑的面板函数
 - R panel.stripplot 带状图的默认面板函数
 - R panel.superpose 分组显示面板函数
 - R panel.xyplot xyplot 的默认面板函数
 - R panel.bwplot bwplot 的默认面板函数
 - R panel.loess 添加黄土平滑的面板函数
 - R panel.axis 绘图轴刻度和标签的面板函数
 - R panel.number 在绘图期间访问辅助信息
 - R panel.functions 有用的面板函数组件
 - R panel.parallel 并行的默认面板函数
 - R panel.cloud 云默认面板函数
 - R panel.pairs splom 的默认超级面板函数
 - R panel.dotplot 点图的默认面板函数
 - R panel.densityplot 密度图的默认面板函数
 - R panel.violin 创建小提琴图的面板函数
 - R panel.qqmath qqmath 的默认面板函数
 - R panel.histogram 直方图的默认面板函数
 - R panel.levelplot 水平图和等高线图的面板函数
 - R panel.barchart 条形图的默认面板函数
 - R panel.qqmathline qqmath 的有用面板函数
 - R packet.panel.default 将数据包与面板关联
 - R prepanel.functions Lattice 有用的 Prepanel 函数
 - R print.trellis 绘制和总结网格对象
 - R prepanel.default 默认预面板函数
 - R xyplot.ts 时间序列绘图方法
 
注:本文由纯净天空筛选整理自R-devel大神的英文原创作品 Lattice panel function analogous to smoothScatter。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
