タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

researchとRに関するu_riboのブックマーク (2)

  • R GIS — GeoPacific.org

    的なプロット。シェープファイルを読み、DBFから属性値も読み込む。 # load library library(maptools) # shapefile path shapefile <- 'c:\\users\\imakihi\\project\\riparian\\gisdata\\glo_random_channel_type.shp' # check metadata str(getinfo.shape(shapefile)) # create a map object x <- read.shape(shapefile) # plot data plot(x) # check data length and an attribute structure length(x$Shapes) attributes(x) attributes(x$Shapes) attribut

  • R -- 地図を描く

    地図を描く     Last modified: Oct 21, 2004 目的 地図を描く 使用法 draw.map(fn) 引数 fn 地図情報データファイル データファイルには,一行に境界データ(経度と緯度の座標値(正数))が記述されている 一連の境界データは,経度・緯度がともに 0 であることで区切りとする (あとで NA に置き換え,そのまま plot 関数により境界を描画する) ソース インストールは,以下の 1 行をコピーし,R コンソールにペーストする source("http://aoki2.si.gunma-u.ac.jp/R/src/draw_map.R", encoding="euc-jp") # 境界線データに基づいて白地図を描く draw.map <- function(fn) # 境界線データのあるファイル名 { data <-read.table(fn, h

  • 1