legends(vcd)
legends()所属R语言包:vcd
Legend Functions for Strucplots
联想功能Strucplots
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These functions generate legend functions for residual-based shadings.
这些功能生成图例的功能,剩余阴影。
用法----------Usage----------
legend_resbased(fontsize = 12,
x = unit(1, "lines"), y = unit(0.1,"npc"),
height = unit(0.8, "npc"),
width = unit(0.7, "lines"),
digits = 3, check_overlap = TRUE, text = NULL,
steps = 200, ticks = 10, pvalue = TRUE, range = NULL)
legend_fixed(fontsize = 12, x = unit(1, "lines"), y = NULL,
height = NULL, width = unit(1.5, "lines"), steps = 200,
digits = 1, space = 0.05, text = NULL, range = NULL)
参数----------Arguments----------
参数:fontsize
fontsize of title and p-value text.
字号的标题和P-值的文本。
参数:x, y
objects of class "unit" indicating the coordinates of the title. For legend_fixed, the default for y is computed as to leave enough space for the specified text.
对象的类"unit"指示坐标的称号。 legend_fixed,默认为y的计算方法为指定的text留下足够的空间。
参数:height, width
object of class "unit" indicating the height/width of the legend. For legend_fixed, the default for y is computed as to align upper margins of legend and actual plot.
类的对象"unit"指示的高度/宽度的传说。对于legend_fixed,默认为y计算对齐上边缘的传说和实际的图。
参数:digits
number of digits for the scale labels.
刻度标签的位数的数目。
参数:check_overlap
logical indicating whether overlap of scale labels should be inhibited or not.
逻辑的刻度标签的重叠是否应被禁止或不。
参数:space
For legend_fixed only: proportion of space between the tiles.
对于legend_fixed只有瓷砖之间的空间比例。
参数:text
character string indicating the title of the legend.
字符串表示的标题的传说。
参数:steps
granularity of the color gradient.
颜色渐变的粒度。
参数:ticks
number of scale ticks.
数量规模刻度线。
参数:pvalue
logical indicating whether the p-value should be visualized under the scale or not.
逻辑指示p-值是否垢下或不应该被可视化。
参数:range
Numeric vector of length 2 for setting the legend range. Computed from the residuals if omitted. NA values are replaced by the corresponding minimum / maximum of the residuals.
数字矢量长度为2的设置的传奇范围。从残差计算,如果省略。由相应的最小/最大残差NA的值所取代。
Details
详细信息----------Details----------
These functions generate legend functions for residual-based shadings, visualizing deviations from expected values of an hypothesized independence model. Therefore, the legend uses a supplied shading function to visualize the color gradient for the residuals range. legend_fixed is inspired by the legend used in mosaicplot. For more details on the shading functions and their return values, see shadings.
这些功能剩余阴影生成图例的功能,可视化的虚拟独立模型的预期值的偏离。因此,Legend采用的是提供的遮光功能,可视化的颜色渐变的残差范围。 legend_fixed的灵感来自的传说在mosaicplot。遮光功能以及它们的返回值的详细信息,请参阅shadings。
值----------Value----------
A function with arguments:
的功能与参数:
参数:residuals
residuals from the fitted independence model to be visualized.
从拟合的独立模型的残差可视化。
参数:shading
shading function computing colors from residuals (see details).
阴影残差(见详情)函数计算的颜色。
参数:autotext
character vector indicating the title to be used when no text argument is specified. Allows strucplot to generate sensible defaults depending on the residuals type.
字符向量表示时要使用没有text参数指定的标题。 ,允许strucplot产生合理的默认值,根据残差类型。
(作者)----------Author(s)----------
David Meyer <a href="mailtoavid.Meyer@R-project.org">David.Meyer@R-project.org</a>
参考文献----------References----------
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>.
extended association plots. Proceedings of the 3rd International Workshop on Distributed Statistical Computing, K. Hornik, F. Leisch, A. Zeileis (eds.), ISSN 1609-395X. http://www.ci.tuwien.ac.at/Conferences/DSC-2003/Proceedings/
参见----------See Also----------
structable, shadings
structable,shadings
实例----------Examples----------
data("Titanic")
mosaic(Titanic, shade = TRUE, legend = legend_resbased)
mosaic(Titanic, shade = TRUE, legend = legend_fixed, gp = shading_Friendly)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|