geom_chevron(ggbio)
geom_chevron()所属R语言包:ggbio
Chevron Geoms for GRanges object
雪佛龙Geoms农庄对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Break normal intervals stroed in GRanges object and show them as chevron geom, useful for showing model or splice summary.
打破GRanges对象stroed的正常间隔,并显示字形GEOM,显示模型或剪接总结。
用法----------Usage----------
geom_chevron(data, ..., group.name, offset = 0.1,
chevron.height = c(0.1, 0.8))
参数----------Arguments----------
参数:data
A GRanges object.
一个农庄对象。
参数:...
Extra parameters passed to qplot function.
额外的参数传递给qplot功能。
参数:group.name
group.name passed to addSteppings, in case your GRanges object doesn't contain ".levels" column. You can do it here.
group.name通过addSteppings,如果你的GRanges对象不包含“层次”一栏。在这里你可以做。
参数:offset
A nunmeric value or characters. If it's numeric value, indicate how much you want the chevron to wiggle, usually the rectangle for drawing GRanges is of height unit 1, so it's better between -0.5 and 0.5 to make it nice looking. Unless you specify offset as one of those columns, this will use height of the chevron to indicate the columns. Of course you could use size of the chevron to indicate the column variable easily, please see the examples.
一个nunmeric值或字符。如果它的数值,你要多少人字形摆动,通常用于绘制矩形GRanges是身高1单元,因此它是-0.5和0.5之间更好的使其五官端正。除非你指定列偏移量,这将使用雪佛龙公司的高度,以表明列。当然,你可以使用字形的大小来表示列变量很容易,请看到的例子。
参数:chevron.height
A numeric vector of length 2. When the offset parameters is a character which is one of the data columns, this parameter could specify the wiggled range of the chevron(or the height range).
一个长度为2的数字向量。当偏移参数是一个字符,这是一个数据列,此参数可以指定范围内摆动的雪佛龙公司(或高度范围)。
Details
详情----------Details----------
To draw a normal GRanges as Chevron instead of segments or rectangle as shown in previous sections, we need to provide a special geom for this purpose. Chevron is popular in gene viewer or genomoe browser, when they try to show isoforms or gene model.geom_chevron, just like any other geom_* function in ggplot2, you can pass aes() to it to use height of chevron or width of chevron to show statistics summary.
提请雪佛龙公司,而不是在前面的章节所示的分部或长方形正常农庄,我们需要为此提供一个特殊的geom。雪佛龙是流行在基因观众或genomoe浏览器,当他们试图表明异构体或基因模型。geom_chevron,就像任何其他geom_*在ggplot2功能,您可以通过AES(),它使用高度雪佛龙或雪佛龙的宽度统计汇总。
值----------Value----------
A 'Layer'.
一个“层”。
作者(S)----------Author(s)----------
Tengfei Yin
举例----------Examples----------
## Not run: [#无法运行:]
library(GenomicRanges)
gr <- GRanges("chr1", IRanges(c(100, 200, 300), width = 50))
p <- qplot(gr)
gr.gaps <- gaps(gr)[-1]
values(gr.gaps)$score <- c(1, 100)
p + geom_chevron(gr.gaps)
p + geom_chevron(gr.gaps, aes(size = score), offset = "score")
p + geom_chevron(gr.gaps, aes(size = score), offset = "score",
chevron.height = c(0.1, 0.2))
p + geom_chevron(gr.gaps, offset = -0.1)
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|