找回密码
 注册
查看: 322|回复: 0

R语言 spacetime包 fires()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 12:12:41 | 显示全部楼层 |阅读模式
fires(spacetime)
fires()所属R语言包:spacetime

                                        Northern Los Angeles County Fires
                                         北洛杉矶县火灾

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Wildfire occurrences in Northern Los Angeles County, California between 1976 and 2000.  The spatial units are in scaled feet, taken from the NAD 83 state-plane coordinate system.  One unit is equivalent to 100,000 feet or 18.9 miles.  The times for the points were produced by the date package and represent the number of days since January 1, 1960.
野火发生在加利福尼亚州洛杉矶县北部,1976年和2000年之间。空间的单位是规模脚,,从NAD 83国家平面坐标系统。一个单位相当于10万英尺或18.9英里。 date包的点产生的时间,代表1960年1月1日以来的天数。


用法----------Usage----------


data(fires)



格式----------Format----------

A data frame with 313 observations with day of occurrence, x and y coordinates.
一个数据框有313天观测的发生,x和y坐标。


(作者)----------Author(s)----------


Roger Peng, taken from (non-CRAN) package ptproc,

<a href="http://www.biostat.jhsph.edu/~rpeng/software/index.html">http://www.biostat.jhsph.edu/~rpeng/software/index.html</a>;

example code by Roger Bivand.




实例----------Examples----------


data(fires)
fires$X <- fires$X*100000
fires$Y <- fires$Y*100000
coordinates(fires) <- c("X", "Y")
proj4string(fires) <- CRS("+init=epsg:2229")
dates <- as.Date("1960-01-01")+(fires$Time-1)
Fires <- STIDF(as(fires, "SpatialPoints"), dates, data.frame(time=fires$Time))
if (require(rgdal)) {
  library(maptools)
  library(mapdata)
  m <- map("county", "california", xlim=c(-119.1, -117.5),
          ylim=c(33.7, 35.0), plot=FALSE)
  cc <- spTransform(map2SpatialLines(m,
          proj4string=CRS("+proj=longlat")), CRS("+init=epsg:2229"))
  plot(cc, xlim=c(6300000, 6670000), ylim=c(1740000, 2120000))
  plot(slot(Fires, "sp"), pch=3, add=TRUE)
  stplot(Fires, sp.layout=list("sp.lines", cc))
}

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-10 00:49 , Processed in 0.022689 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表