plotmap(SpatialEpi)
plotmap()所属R语言包:SpatialEpi
Plot Levels of a Variable in a Colour-Coded Map
图水平的变量在一个颜色编码的图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plot levels of a variable in a colour-coded map.
图水平的变量在彩色编码的图。
用法----------Usage----------
plotmap(values, map, log = FALSE, nclr = 7, include.legend = TRUE, lwd = 0.5, round = 3, brks = NULL, legend = NULL, location = "topright", rev = FALSE)
参数----------Arguments----------
参数:values
variable to plot
变量来绘制
参数:map
an object of class SpatialPolygons (See SpatialPolygons-class)
一个对象的类SpatialPolygons的(见SpatialPolygons级)
参数:log
boolean of whether to plot values on log scale
布尔是否绘制对数刻度值
参数:nclr
number of colour-levels to use
颜色的使用数量
参数:include.legend
boolean of whether to include legend
布尔是否包括传说
参数:lwd
line width of borders of areas
区域的边界线的宽度
参数:round
number of digits to round to in legend
四舍五入到传说中的位数
参数:brks
if desired, pre-specified breaks for legend
如果需要,预先指定的减免传说
参数:legend
if desired, a pre-specified legend
如果需要的话,一个预先指定的图例
参数:location
location of legend
传说中的位置
参数:rev
boolean of whether to reverse colour scheme (darker colours for smaller values)
布尔值的无论对扭转配色方案(较暗的颜色值越小)
值----------Value----------
A map colour-coded to indicate the different levels of values.
颜色编码的图来表示不同程度的values。
(作者)----------Author(s)----------
Albert Y. Kim
参见----------See Also----------
mapvariable
mapvariable
实例----------Examples----------
## Load data[#加载数据]
data(scotland)
map <- scotland$spatial.polygon
y <- scotland$data$cases
E <- scotland$data$expected
SMR <- y/E
## Plot SMR[#图SMR]
plotmap(SMR, map, nclr=9, location="topleft")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|