plot.nb(spdep)
plot.nb()所属R语言包:spdep
Plot a neighbours list
“画出一个邻居列表
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A function to plot a neighbours list given point coordinates to represent the region in two dimensions; plot.listw is a wrapper that passes its neighbours component to plot.nb.
函数来绘制一个邻居列表中给定的点坐标来表示该区域的两个维度;,plot.listw是一个包装器,通过它的邻居组件的plot.nb。
用法----------Usage----------
## S3 method for class 'nb'
plot(x, coords, col="black", points=TRUE, add=FALSE, arrows=FALSE,
length=0.1, xlim=NULL, ylim=NULL, ...)
## S3 method for class 'listw'
plot(x, coords, col="black", points=TRUE, add=FALSE, arrows=FALSE,
length=0.1, xlim=NULL, ylim=NULL, ...)
参数----------Arguments----------
参数:x
an object of class nb or (for plot.listw) class listw
类的一个对象nb或(为plot.listw)类listw的
参数:coords
matrix of region point coordinates
区域点的坐标矩阵
参数:col
plotting colour
绘图颜色
参数:points
(logical) add points to plot
(逻辑)加点来绘制
参数:add
(logical) add to existing plot
(逻辑)添加到现有的图
参数:arrows
(logical) draw arrowheads for asymmetric neighbours
画箭头(逻辑)非对称邻居
参数:length
length in plot inches of arrow heads drawn for asymmetric neighbours lists
图英寸的箭头头的长度绘制非对称邻居列表
参数:xlim, ylim
plot window bounds
图窗口范围
参数:...
further graphical parameters as in par(..)
进一步的图形参数如par(..)
(作者)----------Author(s)----------
Roger Bivand <a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>
参见----------See Also----------
summary.nb
summary.nb
实例----------Examples----------
example(columbus)
coords <- coordinates(columbus)
plot(col.gal.nb, coords)
title(main="GAL order 1 links with first nearest neighbours in red")
col.knn <- knearneigh(coords, k=1)
plot(knn2nb(col.knn), coords, add=TRUE, col="red", length=0.08)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|