waterfallchart(waterfall)
waterfallchart()所属R语言包:waterfall
Waterfall Charts in R using Lattice
在R使用莱迪思的瀑布图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Creates a waterfall chart using the 'Lattice' package.
创建一个瀑布图,使用莱迪思的包。
用法----------Usage----------
waterfallchart(x, data, ...)
## S3 method for class 'formula'[类formula的方法]
waterfallchart(x, data=NULL, groups=NULL,
horizontal=FALSE, panel=lattice.getOption("panel.waterfallchart"),
prepanel=lattice.getOption("prepanel.waterfallchart"), box.ratio = 2,
origin = 0, ...)
参数----------Arguments----------
参数:x
a formula describing the form of conditioning plot. The formula is generally of the form 'y ~ x | g1 * g2 * ...', indicating that plots of 'y' (on the y axis) versus 'x' (on the x axis) should be produced conditional on the variables 'g1, g2, ...'. However, the conditioning variables 'g1,g2,...' may be omitted.
公式说明空调图的形式。该公式是一般的形式Y键~X | G1 * G2 * ...,y的(y轴)相对于(x轴)的“x”,表明图应生产条件的变量的G1,G2,...“。然而,条件变量的g1,g2中,...“也可以省略。
参数:data
a data frame containing values (or more precisely, anything that is a valid 'envir' argument in 'eval', e.g., a list or an environment) for any variables in the formula, as well as 'groups' and 'subset' if applicable. If not found in 'data', or if 'data' is unspecified, the variables are looked for in the environment of the formula.
包含的值的数据框(或更精确地说,是一个有效的ENVIReval的,例如,一个列表或一个环境参数中的任何东西)在公式中的任何变量,以及基团“和”子集“的,如果适用。如果未找到,在数据,或data是,如果未指定,则变量寻找在环境中的式。
参数:groups
a variable or expression to be evaluated in the data frame specified by 'data', expected to act as a grouping variable within each panel, typically used to distinguish different groups by varying graphical parameters like color and line type. Unlike with the barchart function, groups specifies where subtotals columns, should appear. There is a subtotal created for each group specified. If no groups are given, a summary column is still reported.
数据,预期作为分组的每个面板内的变量,通常用于区分不同的基团,通过改变颜色和线条类型的图形参数,如数据框中的所指定的变量或表达式的求值。与BarChart的功能不同,组指定小计列,应该出现的地方。有一个小计为每个组指定。如果没有团体,摘要栏仍报。
参数:horizontal
This argument is used to process the arguments to these high level functions, but more importantly, it is passed as an argument to the panel function, which is supposed to use it as appropriate.
此参数是用来处理这些高级功能的参数,但更重要的是,它是通过面板功能,这应该是使用适当的参数。
参数:panel
This draws the actual plot after bwplot has done the difficult work of processing the formula.
绘制的实际的图后bwplot已完成困难的工作处理公式。
参数:prepanel
This function returns the bwplot information on the number of columns to display and where to place labels.
这要显示的列数和标签的放置位置的函数返回bwplot的信息。
参数:box.ratio
specifies the ratio of the width of the rectangles to the interrectangle space.
指定的比例的宽度的矩形的interrectangle空间。
参数:origin
initial offset relative to the x axis. The value serves as the logical starting point for the first column and any summary column. Defaults to 0.
初始偏移量相对于x轴。的值作为逻辑起点的第一列和任何摘要栏。默认为0。
参数:...
further arguments
进一步的论据
Details
详细信息----------Details----------
This function closely mimics the barchart interface, but provides a type of chart called a waterfall plot, showing how multiple subvalues contribute to a total sum.
此功能密切模仿BarChart的接口,但提供了一个称为瀑布图,展示如何将多个子值总金额的图表类型。
The bulk of the work is actually processed in bwplot which defines where tickmarks and other information outside the plot itself are placed. Only a formula method is provided.
实际上,大部分的工作是定义刻度线和图本身之外的其他信息被放置在bwplot处理。只有一个公式方法被提供。
Matrix and vector interfaces are not provided because mimicing the behavior of barchart for those interfaces produces unintellible and undefined graphic output.
矩阵和向量的接口,因为这些接口mimicing的行为BarChart的产生unintellible和不确定的图形输出。
参考文献----------References----------
James P. Howard, II, FIXME.
Andrew Jaquith, Security Metrics: Replacing Fear, Uncertainty, and Doubt (Boston: Addison-Wesley Professional, 2007), 170-172.
Ethan M. Rasiel, The McKinsey Way: Using the Techniques of the World's Top Strategic Consultants to Help You and Your Business (New York: McGraw-Hill, 1999), 113-118.
参见----------See Also----------
barchart, waterfallplot
barchart,waterfallplot
实例----------Examples----------
data(rasiel)
data(jaquith)
waterfallchart(value~label, data=rasiel, groups=subtotal)
waterfallchart(factor~score, data=jaquith)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|