Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

脱rainbow():RColorBrewerとcolorRampPalette()で、地図描画

1,759 views

Published on

脱rainbow():RColorBrewerとcolorRampPalette()で、地図描画

Published in: Software
  • -- DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT -- ......................................................................................................................... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... (Unlimited)
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Download or read that Ebooks here ... ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • (Unlimited)....ACCESS WEBSITE Over for All Ebooks ................ accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn }
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

脱rainbow():RColorBrewerとcolorRampPalette()で、地図描画

  1. 1. 脱rainbow(): RColorBrewerとcolorRampPalette() で、地図描画
  2. 2. 自己紹介 • @Yamakita_lab • 専門:空間生態学 • GIS、空間周辺、統計周辺 最近R-Shiny使いはじめました。 ・・・が、DropboxがRから読めなくなり困った
  3. 3. GIS(地理情報システム)とは? • 地図のデータをいじること • どんなところで使われているの? • 専門のソフトでいじられることが多い http://www.osgeo.jp/ FOSS4G 2014 Osaka/Tokyo 2014/10/31-11/02 – ラスター(GeoTiff, jpg+jpw)、ベクター(shape) – ポイントデータはPostGISなどDBでも! • データは色々なところで公開されている。 – 地球地図、国土数値情報など http://www.gsi.go.jp/kankyochiri/gm_jpn.html#gm_jpn_dl http://nlftp.mlit.go.jp/ksj/
  4. 4. 空間管理、土地利用計画 地盤沈下 津波の溯上高 生物群集への被害(アンケート) High Low High Low High Low 国立公園 港湾区域 漁業権区域
  5. 5. GIS(地理情報システム)とは? • 地図のデータをいじること • どんなところで使われているの? • 専門のソフトでいじられることが多い http://www.osgeo.jp/ FOSS4G 2014 Osaka/Tokyo 2014/10/31-11/02 – ラスター(GeoTiff, jpg+jpw)、ベクター(shape) – ポイントデータはPostGISなどDBでも! • データは色々なところで公開されている。 – 地球地図(これを使用)、国土数値情報など http://www.gsi.go.jp/kankyochiri/gm_jpn.html#gm_jpn_dl http://nlftp.mlit.go.jp/ksj/
  6. 6. http://www.gsi.go.jp/kankyochiri/gm_jpn.html Cの直下に jpnフォルダを 作成して保存
  7. 7. とりあえず地図を読み込み library(rgdal);library(raster) #海岸線(coastl_jpn.shp) coast1 <- readOGR(dsn="C:jpn",layer="coastl_jpn") #標高 tif1 <- readGDAL(“C:jpnel.tif") ras1 <- raster(tif1) #描画 plot(ras1) plot(coast1,add=TRUE) データソース(フォルダ名) レイヤー名(拡張子なし)
  8. 8. plot(ras1,col=rainbow(10)) • 赤潮? 青潮? ・・・ステマです。 ( 著者割1000円にて直販中) *赤潮や青潮については 浦安自然まるごと探険隊 『新浦安から伝える東京湾の海辺 「三番瀬」』 に解説されております。
  9. 9. RColorBrewerとは? カラーチャート色々 library(RColorBrewer) display.brewer.all() #カラーバーのリスト rownames( brewer.pal.info ) くわくしくはwebで http://www.colorbrewer.org.
  10. 10. colorRampPalette()とは? • 与えた色のセットを内挿して新しいカラーパ レット、ランプ(コンター色)を作る。 colorRamp( colors, #←ここで色のベクトルを指定 bias = 1, #←低い値への重みづけ space = c(“rgb”, “Lab”), #←色領域 interpolate = c(“linear”, “spline”), #←内挿法 alpha = FALSE #←透過性(colorsにalphaの値も必要) )
  11. 11. 地図でやってみる plot(ras1, axes=FALSE, col=colorRampPalette( brewer.pal(9,"YlOrRd") )(50) ) col2rgb(brewer.pal(9,"YlOrRd")),c((0:8)*31.8))
  12. 12. 地図でやってみる #透過を作成する rgbal <-rbind( col2rgb(brewer.pal(9,"YlOrRd")), c((8:0)*31.8)) #透過のグラデーション(255に近いように31.8掛けた) ) plot(coast1) plot(ras1, col=colorRampPalette( rgb(t(rgbal),max=255) )(50), add=TRUE ) 31.8)) ・・・あれ?透過されない・・・
  13. 13. 以上です

×