draw.single.venn(VennDiagram)
draw.single.venn()所属R语言包:VennDiagram
Draw a Venn Diagram with a Single Set
与单套画一个维恩图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Creates a Venn diagram with a single set.
创建一个与一个单一的集维恩图。
用法----------Usage----------
draw.single.venn(area, category = "", lwd = 2, lty = "solid", col = "black", fill = NULL, alpha = 0.5, label.col = "black", cex = 1, fontface = "plain", fontfamily = "serif",
cat.pos = 0, cat.dist = 0.025, cat.cex = 1, cat.col = "black", cat.fontface = "plain", cat.fontfamily = "serif", cat.just = list(c(0.5, 0.5)), cat.default.pos = "outer", cat.prompts = FALSE,
rotation.degree = 0, rotation.centre = c(0.5, 0.5), ind = TRUE, ...)
参数----------Arguments----------
参数:area
The size of the set
集的大小
参数:category
The category name of the set
的设定的类别名称
参数:lwd
lwd of the circle's circumference
lwd圆的周长
参数:lty
lty of the circle's circumference
lty圆的周长
参数:col
Colour of the circle's circumference
圆的周长的颜色
参数:fill
Colour of the circle's area
圆面积的颜色
参数:alpha
Alpha transparency of the circle's area
Alpha透明的圆的面积
参数:label.col
Colour of the area label
面积标签的颜色
参数:cex
cex of the area label
cex的面积标签
参数:fontface
fontface of the area label
fontface的面积标签
参数:fontfamily
fontfamily of the area label
fontfamily的面积标签
参数:cat.pos
The position (in degrees) of the category name along the circle, with 0 at the 12 o'clock location
沿圆的类别名称的位置(度),0在12点钟位置
参数:cat.dist
The distance (in npc units) of the category name from the edge of the circle (can be negative)
的距离(在全国人大单位)的圆的边缘中的类别名称(可以为负)
参数:cat.cex
cex of the category name
cex类别名称
参数:cat.col
Colour of the category name
颜色的类别名称
参数:cat.fontface
fontface of the category name
fontface类别名称
参数:cat.fontfamily
fontfamily of the category name
fontfamily类别名称
参数:cat.just
List of 1 vector of length 2 indicating horizontal and vertical justification of the category name
1向量长度为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 in the end or not
布尔值,指示函数是否是自动绘制的图最终还是没有
参数:...
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----------
This function mostly complements other functions in the VennDiagram package that draws multi-set diagrams by providing a function that draws single-set diagrams with similar graphical options.
此功能主要在VennDiagram包等功能,吸引了多套图提供了一个功能,吸引了单集图类似的图形选项的补充。
值----------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 single-set diagram[一个简单的单集图]
venn.plot <- draw.single.venn(100, "First");
# A more complicated diagram[一个更复杂的图]
venn.plot <- draw.single.venn(
area = 365,
category = "All\nDays",
lwd = 5,
lty = "blank",
cex = 3,
label.col = "orange",
cat.cex = 4,
cat.pos = 180,
cat.dist = -0.20,
cat.col = "white",
fill = "red",
alpha = 0.15
);
# Writing to file[写入文件]
tiff(filename = "Single-set Venn diagram.tiff", compression = "lzw");
venn.plot <- draw.single.venn(100, "First", ind = FALSE);
grid.draw(venn.plot);
dev.off();
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|