R语言 
panel.violin 位于 lattice 包(package)。 说明
这是一个可以创建小提琴图的面板函数。它通常用于对 bwplot 的高级调用。
用法
panel.violin(x, y, box.ratio = 1, box.width,
             horizontal = TRUE,
             alpha, border, lty, lwd, col,
             varwidth = FALSE,
             bw, adjust, kernel, window, 
             width, n = 50, from, to, cut,
             na.rm, ...,
             identifier = "violin")
参数
x , y | 
 数值向量或因子。如果   | 
box.ratio | 
 每把小提琴的厚度与小提琴间距之比  | 
box.width | 
 小提琴的厚度(以绝对单位表示);覆盖   | 
horizontal | 
 合乎逻辑的。如果为 FALSE,则绘图为 ‘transposed’,因为   | 
alpha , border , lty , lwd , col | 
 控制小提琴的图形参数。默认值取自  | 
varwidth | 
 合乎逻辑的。如果   | 
bw ,  adjust ,  kernel ,  window ,  width ,  n ,  from ,  to ,  cut ,  na.rm | 
 
  | 
... | 
 参数传递给   | 
identifier | 
 附加到由此面板函数创建的 grobs 名称之前的字符串。  | 
细节
为 y 的每个级别创建 x 小提琴图。请注意,大多数控制显示的参数可以直接提供给高级(通常是 bwplot )调用。
例子
bwplot(voice.part ~ height, singer,
       panel = function(..., box.ratio) {
           panel.violin(..., col = "transparent",
                        varwidth = FALSE, box.ratio = box.ratio)
           panel.bwplot(..., fill = NULL, box.ratio = .1)
       } )
作者
Deepayan Sarkar Deepayan.Sarkar@R-project.org
也可以看看
相关用法
- 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.spline 添加样条平滑的面板函数
 - R panel.stripplot 带状图的默认面板函数
 - R panel.smoothScatter 格子面板函数类似于 smoothScatter
 - R panel.qqmath qqmath 的默认面板函数
 - R panel.superpose 分组显示面板函数
 - 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大神的英文原创作品 Panel Function to create Violin Plots。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
