compare.matrix(SDMTools)
compare.matrix()所属R语言包:SDMTools
Biplot Comparison of Matrices
双标图矩阵的比较
译者:生物统计家园网 机器人LoveR
描述----------Description----------
compare.matrix compares the values within two matrices (e.g., ESRI ArcInfo ASCII raster files) and produces a biplot that shows the frequency of each data combination shared between the matrices. The plot is overlayed with contour lines that demarcate parts of the the plot that share the same frequency of data combinations. <br> <br> NOTE: it is assumed the matrices are of the same extent, cell size and scaled to be the same units.
compare.matrix的值进行比较的两个矩阵内(例如,ESRI ArcInfo的ASCII栅格文件),产生一个表示矩阵之间共享的每个数据组合的频率的双标图。重叠等高线图,标定的图,共享相同的数据组合。 <br> <br>请注意:它是假定的矩阵是相同的程度,单元的大小,并调整到相同的单位。
用法----------Usage----------
compare.matrix(x,y,nbins,...)
参数----------Arguments----------
参数:x
a matrix of data; the matrix can be a raster of class 'asc' (adehabitat package), 'RasterLayer' (raster package) or 'SpatialGridDataFrame' (sp package)
一个数据矩阵,矩阵可以是一个栅格类递增(adehabitat包),的RasterLayer(栅格包)或SpatialGridDataFrame(藻封装)
参数:y
a matrix of data of the same extent, cell size and class as 'x'
的数据相同的程度,单元大小和类的“x的矩阵
参数:nbins
number of equally spaced bins used to partition range of values in 'x' & 'y'
用于分区的值范围中的“x”和Y键同样间隔开的箱数
参数:...
other graphical parameters defined by image(), contour(), or plot()
其他图形图像(),参数定义轮廓(),或plot()
值----------Value----------
Nothing is returned but images are created.
没有返回,但创建的图像。
(作者)----------Author(s)----------
Luke Shoo <a href="mailto:luke.shoo@jcu.edu.au">luke.shoo@jcu.edu.au</a>
实例----------Examples----------
#create some simple objects of class 'asc'[创建一些简单的对象类ASC]
tasc = as.asc(matrix(rep(x=1:10, times=1000),nr=100)); print(tasc)
#modify the asc objects so that they are slightly different[修改递增,让他们略有不同的对象]
tasc1 = tasc + runif(n = 10000, min = -1, max = 1)
tasc2 = tasc + rnorm(n = 10000, mean = 1, sd = 1)
#create some images[创建一些图片]
#basic plot showing the density of data combinations shared [基本图,显示的密度数据组合共享]
#by the two matrices[由两个矩阵]
compare.matrix(tasc1,tasc2,20)
#same as previous but with data partioned amoung more bins[以前,但与相同的的数据partioned先前研究多箱]
compare.matrix(tasc1,tasc2,50)
#same as previous but altering the number of contour levels [与前面相同,但改变的轮廓水平的数目]
#and adding more graphical functions[并加入更多的图形功能]
compare.matrix(tasc1,tasc2,50,nlevels=5, xlab='asc1',ylab='asc2',
main='Comparison between asc and asc2', bg="grey")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|