OCshow(OCplus)
OCshow()所属R语言包:OCplus
Show one ore several OC curves graphically
57一矿多个OC曲线图形
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plots empirical OC curves for one or several data sets simultaneously, showing the local or global false discovery rate among the top regulated genes. This is the preferred way of comparing the OC of different analyses.
图实证业主立案法团的一个或多个数据曲线同时设置,显示当地或全球跻身调节基因的假发现率。这是不同的分析比较,业主立案法团的首选方式。
用法----------Usage----------
OCshow(x, ..., global = TRUE, percentage = TRUE, top = 0.1, legend, lty, col, main, xlab, ylab)
参数----------Arguments----------
参数:x, ...
one or several objects created by either EOC, fdr1d, or fdr2d
一个或几个对象要么EOC创建,fdr1d或fdr2d
参数:global
logical value indicating whether to show the global or the local false discovery rates; note that if any of the objects to be plotted was created by EOC, only global Fdr is available.
逻辑值,该值指示是否显示任何对象,如果要绘制了EOC,全球唯一的FDR是创建全球或本地的错误发现率;注。
参数:percentage
logical switch indicating whether to show the percentage of top regulated genes or the actual numbers; note that the cutoff top is always a percentage
逻辑开关指示是否显示比例,注意顶部的调节基因或实际数字,截止top始终是一个百分比
参数:top
a value between 0 and 1 specifying the percentage of top-regulated genes that is to be shown in the plot
0和1之间的值指定的百分比是要在图中的顶级调节基因
参数:legend
a character vector giving names for each of the objects to be plotted for a legend in the left upper corner
字符向量,给每个对象的名字被绘制在左上角的一个传奇
参数:lty, col
line styles and colors for the different OC curves
线条样式和颜色不同的OC曲线
参数:main
a plot title
图标题
参数:xlab, ylab
axis labels
轴标签
Details
详情----------Details----------
Each object generated by EOC, fdr1d, and fdr2d lists for each gene a t-statistic and either a local or a global false discovery rate. The OC curves are constrcuted by ordering the genes according to the false discovery rates, and counting how many fall under a given threshold. These counts are plotted (either directly or as percentage of all genes) on the horzontal axis, while the thresholds are plotted on the vertical axis. Where appropriate, local false discovery rates are converted to global rates by simple averaging.
每个对象所产生的EOC,fdr1d,fdr2d列出每一个基因的t-统计,在本地或一个全球性的错误发现率。 OC曲线constrcuted订购的基因,根据虚假的发现率,计算在一个给定的阈值下降多少。这些罪名是图(直接或所有基因的百分比)表示平轴的阈值,而纵轴上绘制。在适当的情况下,当地的假发现率转换为全球利率,通过简单的平均。
作者(S)----------Author(s)----------
A. Ploner
参见----------See Also----------
EOC, fdr1d, fdr2d
EOC,fdr1d,fdr2d
举例----------Examples----------
# We simulate a small example with 5 percent regulated genes and[我们模拟一个小例子,用5%的调节基因和]
# a rather large effect size[一个相当大的规模效应]
set.seed(2003)
xdat = matrix(rnorm(50000), nrow=1000)
xdat[1:25, 1:25] = xdat[1:25, 1:25] - 2
xdat[26:50, 1:25] = xdat[26:50, 1:25] + 2
grp = rep(c("Sample A","Sample B"), c(25,25))
# Compute the different false discovery rates[计算出不同的错误发现率]
# p0 is fixed[P0是固定]
global = EOC(xdat, grp, plot=FALSE, p0=0.95)
local1d = fdr1d(xdat, grp, p0=0.95)
local2d = fdr2d(xdat, grp, p0=0.95)
# Some possible arrangements[一些可能的安排]
leg = c("global","local1d","local2d")
par(mfrow=c(2,2))
OCshow(global, local1d, local2d, legend=leg, main="Default")
OCshow(global, local1d, local2d, legend=leg, percentage=FALSE,
main="Number of genes")
OCshow(global, local1d, local2d, legend=leg, top=1, main="All genes")
OCshow(local1d, local2d, legend=leg[2:3], global=FALSE, main="Local fdr")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|