v2m(OLIN)
v2m()所属R语言包:OLIN
Converts vector to matrix based on spot layout
根据现场布局,向量矩阵转换
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This functions converts a vector to a matrix based on a given spot layout. Optionally,
此功能转换到一个给定的点布局为基础的矩阵向量。 (可选)
用法----------Usage----------
v2m(V,Ngc,Ngr,Nsc,Nsr,visu=FALSE,color.lim=c(-1,1),xlab="Columns",ylab="Rows",...)
参数----------Arguments----------
参数:V
vector of real values
实际值的向量
参数:Ngc
number of columns for the grid matrix
网格矩阵的列数
参数:Ngr
number of rows for the grid matrix
网格矩阵的行数
参数:Nsc
number of columns for the spot matrix
点矩阵的列数
参数:Nsr
number of rows for the spot matrix
点矩阵的行数
参数:visu
If FALSE, MXY plot is generated.
如果为FALSE,MXY图产生。
参数:color.lim
Limits of color range for MXY plot
MXY图色彩范围的限制
参数:xlab
label of x -axis of MXY plot
MXY图x轴的标签
参数:ylab
label of y-axis of MXY plot
MXY图Y轴的标签
参数:...
Further optional parameters for the image function generating the MXY plot
image功能的进一步可选参数生成MXY图
Details
详情----------Details----------
The function v2m converts a vector V (as e.g. derived by maM(object)[,index]) to a matrix representing the spatial distribution of the values of V across the array. Note that this function assumes a specific mapping between the data points and the location of spot (i.e. the same mapping rule that is used for marrayRaw/marrayNorm objects.) The validity of this mapping should be carefully checked (see also the documentation of packet marray.) The option for spatial visualisation is rather restricted to logged fold-changes as the corresponding colour range is centred around zero and follows the conventional colouring (green for negative, red for positive fold-changes). The MXY plot produced by v2n does not include a colour bar. To have a colour included, you can use mxy.plot.
功能v2m转换矢量V矩阵代表maM(object)[,index]整个数组的值的空间分布(如如V派生的)。注意,这个函数假设特定的映射之间的数据点与点的位置(即相同的映射规则为用于marrayRaw / marrayNorm对象)。这个映射的有效性应仔细检查(另见包marray的文档)。空间可视化的选项,而限制记录倍的变化,为相应的颜色范围在零附近的中心,并遵循传统的着色(绿色为负,积极折变红色)。 MXY图v2n不包括彩条。有包括颜色,你可以使用mxy.plot。
值----------Value----------
A 2D-matrix with (Ngc*Nsc) columns and (Ngr*Nsr) is produced. This matrix represents the spatial
(Ngc*Nsc)列(Ngr*Nsr)产生的二维矩阵。此矩阵代表的空间
作者(S)----------Author(s)----------
Matthias E. Futschik, <a href="http://itb.biologie.hu-berlin.de/~futschik">http://itb.biologie.hu-berlin.de/~futschik</a>
参见----------See Also----------
mxy.plot, m2v, marrayRaw
mxy.plot,m2v,marrayRaw
举例----------Examples----------
# LOADING DATA NOT-NORMALISED[加载数据没有,正规化]
data(sw.olin)
# CONVERSION FROM VECTOR TO MATRIX[从向量矩阵转换]
M <- v2m(maM(sw.olin)[,1],Ngc=maNgc(sw.olin),Ngr=maNgr(sw.olin),
Nsc=maNsc(sw.olin),Nsr=maNsr(sw.olin),visu=TRUE)
# BACK-CONVERSION FROM MATRIX TO VECTOR[后从矩阵到矢量的转换]
V <- m2v(M,Ngc=maNgc(sw.olin),Ngr=maNgr(sw.olin),
Nsc=maNsc(sw.olin),Nsr=maNsr(sw.olin),visu=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|