mapvariable(SpatialEpi)
mapvariable()所属R语言包:SpatialEpi
Plot Levels of a Variable in a Colour-Coded Map
图水平的变量在一个颜色编码的图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plot levels of a variable in a colour-coded map along with a legend.
图带有图例的颜色编码的图中的一个变量。
用法----------Usage----------
mapvariable(y, spatial.polygon, ncut=1000, nlevels=10, lower=NULL, upper=NULL, main=NULL, xlab=NULL, ylab=NULL)
参数----------Arguments----------
参数:y
variable to plot
变量来绘制
参数:spatial.polygon
an object of class SpatialPolygons (See SpatialPolygons-class)
一个对象的类SpatialPolygons的(见SpatialPolygons级)
参数:ncut
number of cuts in colour levels to plot
色阶绘制的切割数
参数:nlevels
number of levels to include in legend
传说中的水平,包括
参数:lower
lower bound of levels
下界的水平
参数:upper
upper bound of levels
上界的水平
参数:main
an overall title for the plot
总冠军的图
参数:xlab
a title for the x axis
一个标题为x轴
参数:ylab
a title for the y axis
一个标题为y轴
值----------Value----------
A map colour-coded to indicate the different levels of y
一张图颜色编码,以表示不同程度的y
(作者)----------Author(s)----------
Jon Wakefield, Nicky Best, Sebastien Haneuse, and Albert Y. Kim
参考文献----------References----------
实例----------Examples----------
data(scotland)
map <- scotland$spatial.polygon
y <- scotland$data$cases
E <- scotland$data$expected
SMR <- y/E
mapvariable(SMR,map,main="Scotland",xlab="Eastings (km)",ylab="Northings (km)")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|