DisplayPars-class(GenomeGraphs)
DisplayPars-class()所属R语言包:GenomeGraphs
Class "DisplayPars" is used to specify graphical parameters to gdObjects.
类“DisplayPars”是用来指定图形参数gdObjects的。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The DisplayPars functions analagously to par and gp. Generally the class is instantiated using the DisplayPars function rather than directly.
DisplayPars功能analagously杆和GP。一般类的实例使用DisplayPars函数,而不是直接的。
类的对象----------Objects from the Class----------
Objects can be created by calls of the form DisplayPars(...) rather than calls to: new("DisplayPars", ...) by calling the DisplayPars function directly in the constructor the gdObjects are guaranteed to have the appropriate defaults.
对象可以创建调用的形式DisplayPars(...),而不是呼吁:new("DisplayPars", ...)通过调用DisplayPars直接运作,,保证gdObjects有适当的默认的构造。
插槽----------Slots----------
pars: Object of class "environment" Generally this slot is not accessed directly.
pars:对象类"environment"一般来说,这个槽不能直接访问。
方法----------Methods----------
getPar signature(obj = "DisplayPars"): gets a
getParsignature(obj = "DisplayPars"):得到
initialize signature(.Object = "DisplayPars"): This
初始化signature(.Object = "DisplayPars"):
setPar signature(obj = "DisplayPars"): sets a graphical parameter - see the example below. Often it is easier to set
setParsignature(obj = "DisplayPars"):设置图形的参数 - 看下面的例子。往往是容易设置
show signature(object = "DisplayPars"): prints current
显示signature(object = "DisplayPars"):输出电流
警告----------Warning----------
The DisplayPars class should not be manipulated directly. The preferred method for interacting with the class can be seen in the example below.
DisplayPars类不应直接操纵。下面的例子可以看出,在类交互的首选方法。
作者(S)----------Author(s)----------
James Bullard
举例----------Examples----------
showClass("DisplayPars")
if (interactive()) {
minbase = 10000
maxbase = 15000
mart <- useMart("ensembl", dataset = "scerevisiae_gene_ensembl")
genesplus <- new("GeneRegion", start = minbase, end = maxbase, biomart = mart,
strand = "+", chromosome = "I", dp = DisplayPars(size = 2))
## plot it. [#绘制它。]
gdPlot(list(genesplus, new("Title", title = "genes")), minbase, maxbase)
## to obtain a list of the current graphical parameters:[#获得当前的图形参数列表:]
print(genesplus@dp)
## to set a parameter:[#设置一个参数:]
setPar(genesplus, "protein_coding", "pink")
gdPlot(list(genesplus, new("Title", title = "genes")), minbase, maxbase)
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|