找回密码
 注册
查看: 2988|回复: 0

R语言 VennDiagram包 draw.triple.venn()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 15:20:16 | 显示全部楼层 |阅读模式
draw.triple.venn(VennDiagram)
draw.triple.venn()所属R语言包:VennDiagram

                                        Draw a Venn Diagram with Three Sets
                                         画一个维恩图三套

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Creates a Venn diagram with three sets.  Creates Euler diagrams when the dataset meets certain conditions.
创建一个维恩图三组。创建欧拉图的数据集时,满足一定的条件。


用法----------Usage----------


draw.triple.venn(area1, area2, area3, n12, n23, n13, n123, category = rep("", 3), rotation = 1, reverse = FALSE, euler.d = TRUE, scaled = TRUE, lwd = rep(2, 3),
lty = rep("solid", 3), col = rep("black", 3), fill = NULL, alpha = rep(0.5, 3), label.col = rep("black", 7), cex = rep(1, 7), fontface = rep("plain", 7),
fontfamily = rep("serif", 7), cat.pos = c(-40, 40, 180), cat.dist = c(0.05, 0.05, 0.025), cat.col = rep("black", 3), cat.cex = rep(1, 3), cat.fontface = rep("plain", 3),
cat.fontfamily = rep("serif", 3), cat.just = list(c(0.5, 1), c(0.5, 1), c(0.5, 0)), cat.default.pos = "outer", cat.prompts = FALSE, rotation.degree = 0,
rotation.centre = c(0.5, 0.5), ind = TRUE, sep.dist = 0.05, offset = 0, list.order = 1:3, ...)



参数----------Arguments----------

参数:area1
The size of the first set
所述第一组的大小


参数:area2
The size of the second set
第二组的大小


参数:area3
The size of the third set
第三套大小


参数:n12
The size of the intersection between the first and the second set
的交点之间的第一和第二组的大小


参数:n23
The size of the intersection between the second and the third set
的交点之间的第二和第三组的大小


参数:n13
The size of the intersection between the first and the third set
第一和第三组的大小之间的交点


参数:n123
The size of the intersection between all three sets
所有三组之间的交叉点的大小


参数:category
A vector (length 3) of strings giving the category names of the sets
一个向量(长度为3)的字符串给套的类别名称


参数:rotation
1 (default), 2, or 3 indicating clockwise rotation of the three sets from the default arrangement
1(默认),2或3表示顺时针旋转的三组从默认的安排


参数:reverse
Boolean indicating whether the diagram should be mirrored long the vertical axis or not
布尔值,表示图中是否应镜像长的垂直轴或不


参数:euler.d
Boolean indicating whether to draw Euler diagrams when conditions are met or not
布尔值,指示是否绘制欧拉图当条件符合或不


参数:scaled
Boolean indicating whether to scale circle sizes in certain Euler diagrams according to set sizes or not
布尔值,指示是否缩放圈的大小在一定欧拉图,根据设定的大小或不


参数:lwd
A vector (length 3) of numbers giving the lwd of the circles' circumferences
一个向量(长度为3)的数字给lwd的圆的周长


参数:lty
A vector (length 3) giving the lty of the circles' circumferences
给lty的圆的周长的一个向量(长度3)


参数:col
A vector (length 3) giving the colours of the circles' circumferences
提供的颜色的圆的周长的一个向量(长度3)


参数:fill
A vector (length 3) giving the colours of the circles' areas
一个向量(长度3)给圈“区域的颜色


参数:alpha
A vector (length 3) giving the alpha transparency of the circles' areas
一个向量(长度3)圈“区域的Alpha透明度


参数:label.col
A vector (length 7) giving the colours of the areas' labels
一个向量(长度为7)提供领域的标签的颜色


参数:cex
A vector (length 7) giving the cex of the areas' labels
一个向量(长度为7)给cex的标签


参数:fontface
A vector (length 7) giving the fontface of the areas' labels
一个向量(长度为7)给fontface的标签


参数:fontfamily
A vector (length 7) givibg the fontfamily of the areas' labels
一个向量(长度为7)givibg fontfamily的标签


参数:cat.pos
A vector (length 3) giving the positions (in degrees) of the category names along the circles, with 0 (default) at the 12 o'clock location
一个向量(长度3)的位置(度),沿界的类别名称,在12点钟位置为0(默认)


参数:cat.dist
A vector (length 3) giving the distances (in npc units) of the category names from the edges of the circles (can be negative)
的向量(长度3)给出的距离(全国人大单位)从边缘的圆的类别名称(可以为负)


参数:cat.cex
A vector (length 3) giving the cex of the category names
一个向量给cex的类别名称(长度3)


参数:cat.col
A vector (length 3) giving the colours of the category names
的向量(长度3)发出的类别名称的颜色


参数:cat.fontface
A vector (length 3) giving the fontface of the category names
一个向量给fontface的类别名称(长度3)


参数:cat.fontfamily
A vector (length 3) giving the fontfamily of the category names
一个向量给fontfamily的类别名称(长度3)


参数:cat.just
List of 3 vectors of length 2 indicating horizontal and vertical justification of each category name
3个向量的长度为2表示水平和垂直对齐每个类别名称列表


参数:cat.default.pos
Either 'outer' or 'text' to specify the default location of category names (cat.pos and cat.dist are handled differently)
无论是“外部”或“文本”指定的默认位置类别名称(cat.pos和cat.dist的处理方式不同)


参数:cat.prompts
Boolean indicating whether to display help text on category name positioning or not)
布尔值,指示是否显示帮助文字定位或类别名称)


参数:rotation.degree
Number of degrees to rotate the entire diagram
数度旋转整个图


参数:rotation.centre
A vector (length 2) indicating (x,y) of the rotation centre
(长度为2)表示的向量(的x,y)的旋转中心


参数:ind
Boolean indicating whether the function is to automatically draw the diagram before returning the gList object or not
布尔值,指示函数是否是自动绘制图前返回的glist对象,或不


参数:sep.dist
Number between 0 and 1 giving the distance between circles in certain Euler diagrams with mutually exclusive sets
介于0和1之间的数给予在某些欧拉图与互斥集之间的距离,圆


参数:offset
Number giving the amount of offset from the centre in certain Euler diagrams with inclusive sets
给出的偏移量从在某些欧拉图的中心与包容性集的数目


参数:list.order
For internal use only
仅供内部使用


参数:...
Additional arguments to be passed to or from other methods, including margin, which indicates amount of whitespace around the final diagram in npc units
其他参数被传递到或从其他方法,包括margin,这表明周围的空白量在全国人民代表大会单元的最终图


Details

详细信息----------Details----------

Euler diagrams are drawn for 19 special cases if euler.d == TRUE.  Certain Euler diagrams make use of the scaled, sep.dist, or offset arguments specific to two-set Venn diagrams where appropriate. The function defaults to placing the three circles in a triangular arrangement with two sets on top and one set below.  The circles correspond to area1, area2 and area3 in a clockwise fashion with area1 on the top left. N.B. General scaling for three-set Venn diagrams are disabled due to potentially misleading visual representation of the data.  To re-enable, assign any value to variable overrideTriple.
19特殊情况下,如果euler.d == TRUE欧拉图绘制。某些欧拉图scaled,sep.dist或offset参数具体到两盘的维恩图,在适当情况下使用。该功能默认放置在一个三角形排列的三个圆形的顶部和下面的一组两套。界对应区域1,区域2和区域3区1在左上角顺时针的方式在。注意:由于潜在的误导性数据的可视化表示,一般三组维恩图缩放禁用。要重新启用,指定任何值,变量overrideTriple。


值----------Value----------

Returns an object of class gList containing the grid objects that make up the diagram.  Also displays the diagram in a graphical device unless specified with ind = FALSE. Grid::grid.draw can be used to draw the gList object in a graphical device.
返回一个对象,包含网格对象,使图中的类glist了。图中还显示一个图形化的设备,除非指定的IND = FALSE。可用于网格:: grid.draw,在图形设备到得出的glist的对象。


(作者)----------Author(s)----------


Hanbo Chen



实例----------Examples----------


# A simple three-set diagram[一个简单的三集图]
venn.plot <- draw.triple.venn(65, 75, 85, 35, 15, 25, 5, c("First", "Second", "Third"));

# A more complicated diagram[一个更复杂的图]
venn.plot <- draw.triple.venn(
        area1 = 65,
        area2 = 75,
        area3 = 85,
        n12 = 35,
        n23 = 15,
        n13 = 25,
        n123 = 5,
        category = c("First", "Second", "Third"),
        fill = c("blue", "red", "green"),
        lty = "blank",
        cex = 2,
        cat.cex = 2,
        cat.col = c("blue", "red", "green")
        );

# Demonstrating an Euler diagram[展示的欧拉图]
venn.plot <- draw.triple.venn(20, 40, 60, 0, 0, 0, 0, c("First", "Second", "Third"), sep.dist = 0.1, rotation.degree = 30);

# Writing to file[写入文件]
tiff(filename = "Single-set Venn diagram.tiff", compression = "lzw");
       
venn.plot <- draw.triple.venn(65, 75, 85, 35, 15, 25, 5, c("First", "Second", "Third"));

grid.draw(venn.plot);

dev.off();

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-27 00:37 , Processed in 0.025936 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表