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

R语言 chopsticks包 plot.snp.dprime()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 14:59:10 | 显示全部楼层 |阅读模式
plot.snp.dprime(chopsticks)
plot.snp.dprime()所属R语言包:chopsticks

                                         Function to draw the pairwise D' in a eps file
                                         函数绘制在一个EPS文件成对D“

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

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

plot.snp.dprime takes a snp.dprime object and draw an eps file to visualize the pairwise D', $r^2$ and LOD.
plot.snp.dprimesnp.dprime对象,并绘制一个EPS文件,以可视化成对D“,$ R ^ 2 $和LOD。


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


## S3 method for class 'snp.dprime'
plot(x, filename, scheme = "standard", do.notes = FALSE,
metric=NULL, ...)



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

参数:x
An object of class snp.dprime
一个对象的类snp.dprime


参数:filename
The output file name, preferably ending with ".eps" (not enforced)
输出文件的名称,最好是用“易办事”结束(不执行)


参数:scheme
The colour scheme used. Valid values are "standard" for the Haploview default, and "rsq" for grayscale $r^2$. More may come later
使用的配色方案。有效值是“标准”为Haploview违约,“RSQ”灰度$ R ^ 2美元。更可能晚一点


参数:do.notes
Boolean for whether to generate pdf annotation-related code
布尔为是否生成PDF的注释相关的代码


参数:metric
An integer vector, detailing the chromosome position of the SNP, to drawa scaled metric of the location of the SNP. If NULL, no metric would be drawn
整数向量,详细介绍了染色体SNP的位置,drawa规模度量的SNP的位置。如果为NULL,没有标准将制定


参数:...
place holder
占位


Details

详情----------Details----------

Annotation is a little used pdf features where certain part of a pdf file are hot spots where one can get pop-up balloons containing extra information, which doesn't appear in print. This is written to imitate the extra information one can get from right-clicking in Haploview's GUI.
注解是一点点的一个pdf文件的某一部分是热点,其中一个可以包含额外的信息,它不会出现在打印的弹出气球的PDF功能。这是书面的,额外的信息可以从Haploview的图形用户界面中右键单击模仿。


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

return nothing. Write a file as a result. And if do.notes is specified, Will also suggest user to execute ps2pdf -dEPSCrop     <filename> to get a suitable pdf.
返回任何结果。结果写入一个文件。和do.notes如果是指定的,也将建议用户执行ps2pdf -dEPSCrop     <filename>得到一个合适的PDF。


注意----------Note----------

Unfortunately, there are two problems with annotations: only Acrobat Reader (out of all the pdf viewers, e.g. xpdf, kpdf, evince, various ghostscript based viewers) implements the feature, and a few thousand annotations can really make Acrobat Reader crawl.
不幸的是,这里有两个问题与注释:只有使用Acrobat Reader(出所有的PDF浏览器,如xpdf的KPDF,表示出各种基于观众的ghostscript)实现该功能,几千元的注解真的可以使用Acrobat Reader抓取。

Also, Acrobat Reader has an implementation limit of 200 inches of the widest dimension of a document. This translates to 1200 snps in the current implementation of the drawing code, hence a warning is emitted that pdf written this way is not viewable by Acrobat Reader.(but viewable by xpdf, etc). A work around is possible based on LaTeX pdfpage, or eps can be included with scaling in another document, to stay inside 200 inches.
另外,Acrobat Reader有一个最广泛的文档尺寸200英寸的实施期限。这意味着到1200个SNPs在当前的绘图代码的执行,因此发出警告,PDF这样写是不可见的Acrobat Reader。(但xpdf的等可视)。围绕一个工作可能是基于对乳胶pdfpage,或EPS可包含在另一个文档的缩放,200英寸留在里面。

In the future, one might want to put some additional scaling code to fit the whole drawing within an A4, for example.
在未来,人们可能会希望把一些额外的缩放代码,例如,适合整个绘图在一张A4。

There is a Google Summer of code http://code.google.com/soc/ 2006 project to improve kpdf's annotation support. http://wiki.kde.org/tiki-index.php?page=KDE%20Google%20SoC%202006%20ideas#id60851 I am involved.
有一个代码http://code.google.com/soc/ 2006年项目,以改善KPDF的注解支持的Google的夏季。 http://wiki.kde.org/tiki-index.php?page=KDE%20Google%20SoC%202006的%20ideas#id60851我参与。


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


Hin-Tak Leung <a href="mailto:htl10@users.sourceforge.net">htl10@users.sourceforge.net</a>



参考文献----------References----------

whole-genome association studies.  Human Heredity 64:45-51.<br> GSL (GNU Scientific Library) http://www.gnu.org/software/gsl/<br> The postscript language reference manual: http://www.adobe.com/products/postscript/pdfs/PLRM.pdf<br> The pdf specification: http://partners.adobe.com/public/developer/en/pdf/PDFReference16.pdf

参见----------See Also----------

snp.dprime-class
snp.dprime-class


举例----------Examples----------


data(testdata)
# As for ld.snp example ...[至于ld.snp例如...]
data(testdata)
ldinfo <- ld.snp(Autosomes, start=1, end=500, depth=50)
# Now plot to an eps file[现在绘制的EPS文件]
plot.snp.dprime(ldinfo, filename="test.eps")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-14 15:46 , Processed in 0.023696 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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