swissalt(SpatialExtremes)
swissalt()所属R语言包:SpatialExtremes
Elevation in Switzerland
在瑞士的提升
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Data required for plotting a Switzerland map with elevation.
海拔策划瑞士图所需的数据。
用法----------Usage----------
data(swissalt)
格式----------Format----------
This data set contains three R objects. 'alt.mat' is a 192 by 115 matrix giving the elevation at the grid points defined by
该数据集包含三个R对象。 alt.mat是一个192 115矩阵给出定义的格点处的高程
(作者)----------Author(s)----------
Mathieu Ribatet
实例----------Examples----------
data(swissalt)
layout(matrix(c(1,2), 1), width = c(3.5,1))
mar <- rep(0, 4)
op <- par(mar = mar)
breaks <- seq(0, 2000, by = 250)
image(lon.vec, lat.vec, alt.mat, col = terrain.colors(length(breaks) - 1),
xaxt = "n", yaxt = "n", bty = "n", xlab = "", ylab = "", xlim =
c(480, 840), ylim = c(58, 300))
swiss(add = TRUE, city = TRUE)
##Heat bar[#热棒]
mar <- c(3, 3, 3, 4)
par(las = 1, mar = mar)
plot.new()
plot.window(xlim = c(0, 1), ylim = range(breaks), xaxs = "i",
yaxs = "i")
rect(0, breaks[-length(breaks)], 1, breaks[-1], col = terrain.colors(length(breaks) - 1),
border = NA)
axis(4, at = breaks[-length(breaks)])
box()
title("Elevation\n(meters)")
par(op)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|