struc_mosaic(vcd)
struc_mosaic()所属R语言包:vcd
Core-generating Function for Mosaic Plots
马赛克绘图核心的功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Core-generating function for strucplot returning a function producing mosaic plots.
核心产生的功能strucplot返回一个函数产生马赛克图。
用法----------Usage----------
struc_mosaic(zero_size = 0.5, zero_split = FALSE, zero_shade = TRUE,
zero_gp = gpar(col = 0), panel = NULL)
参数----------Arguments----------
参数:zero_size
size of the bullets used for zero-entries in the contingency table (if 0, no bullets are drawn).
零列联表中的条目(如果为0,没有子弹画)所使用的子弹的大小。
参数:zero_split
logical controlling whether zero cells should be further split. If FALSE and zero_shade is FALSE, only one bullet is drawn (centered) for unsplit zero cells. If FALSE and zero_shade is TRUE, a bullet for each zero cell is drawn to allow, e.g., residual-based shadings to be effective also for zero cells.
逻辑控制零单元是否应进一步分裂。如果FALSE和zero_shade是FALSE,只有一颗子弹的绘制(中心)未拆分的零单元。如果FALSE和zero_shade是TRUE,每个零单元被吸引到允许的子弹,例如,剩余的阴影是有效的零单元。
参数:zero_shade
logical controlling whether zero bullets should be shaded.
逻辑控制零子弹是否应该阴影。
参数:zero_gp
object of class "gpar" used for zero bullets in case they are not shaded.
类的对象"gpar"零子弹的情况下,他们没有阴影。
参数:panel
Optional function with arguments: residuals, observed, expected, index, gp, and name called by the struc_mosaic workhorse for each tile that is drawn in the mosaic. index is an integer vector with the tile's coordinates in the contingency table, gp a gpar object for the tile, and name a label to be assigned to the drawn grid object.
可选的功能与参数:residuals,observed,expected,index,gp和name称为struc_mosaic主力的每瓦,在镶嵌画。 index是一个整数的向量,与瓷砖的应急表中的坐标,gp一个gpar对象为瓷砖,name一个标签被分配到的拉伸栅格对象。
Details
详细信息----------Details----------
This function is usually called by strucplot (typically when called by mosaic) and returns a function used by strucplot to produce mosaic plots.
此功能通常被称为strucplot(通常称为mosaic),并返回一个函数使用strucplot产生马赛克图。
值----------Value----------
A function with arguments:
的功能与参数:
参数:residuals
table of residuals.
表的残留物。
参数:observed
table of observed values.
表中观察到的值。
参数:expected
not used by struc_mosaic.
不使用struc_mosaic。
参数:spacing
object of class "unit" specifying the space between the tiles.
类的对象"unit"指定的瓷砖之间的空间。
参数:gp
list of gpar objects used for the drawing the tiles.
列表gpar对象用于绘制的瓷砖。
参数:split_vertical
vector of logicals indicating, for each dimension of the table, the split direction.
向量的逻辑值表示,该表为每个维度,分割方向。
(作者)----------Author(s)----------
David Meyer <a href="mailtoavid.Meyer@R-project.org">David.Meyer@R-project.org</a>
参考文献----------References----------
On the graphical display of the significant components in a two-way contingency table. Communications in Statistics—Theory and Methods, A9, 1025–1041.
Graphical methods for categorical data. SAS User Group International Conference Proceedings, 17, 190–200. http://datavis.ca/sugi/sugi17.pdf
The strucplot framework: Visualizing multi-way contingency tables with <code>vcd</code>. Journal of Statistical Software, 17(3), 1-48. URL http://www.jstatsoft.org/v17/i03/ and available as <code>vignette("strucplot")</code>.
参见----------See Also----------
mosaic, strucplot, structable
mosaic,strucplot,structable
实例----------Examples----------
## Titanic data[#泰坦尼克数据]
data("Titanic")
## mosaic plot with large zeros[#马赛克图与大零]
strucplot(Titanic, core = struc_mosaic(zero_size = 1))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|