2014年9月16日:過去30日間に発生した地震に関する各種ヒストグラム-世界全体および日本の状況について

Data Source:U.S. Geological Survey http://earthquake.usgs.gov/earthquakes/feed/v1.0/csv.php

Package

library(xts) # http://cran.r-project.org/web/packages/xts/xts.pdf
## Loading required package: zoo
## 
## Attaching package: 'zoo'
## 
##  以下のオブジェクトはマスクされています (from 'package:base') : 
## 
##      as.Date, as.Date.numeric
library(ggplot2) # http://cran.r-project.org/web/packages/ggplot2/ggplot2.pdf
library(gridExtra) #http://cran.r-project.org/web/packages/gridExtra/gridExtra.pdf
## Loading required package: grid
library(knitr) # http://cran.r-project.org/web/packages/knitr/knitr.pdf

Read Data

dataset.w<-read.csv("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv")
dataset.j<-dataset.w[grep("Japan",dataset.w[,14]),]

Part of Data

head(dataset.w,3)
##                       time latitude longitude depth  mag magType nst gap
## 1 2014-09-16T10:32:34.660Z    36.00    -120.6  4.30 0.86      md  13  95
## 2 2014-09-16T10:28:32.820Z    38.83    -122.9  2.58 0.78      md  14 104
## 3 2014-09-16T10:26:14.190Z    38.83    -122.8  2.86 0.19      md   9 100
##       dmin  rms net         id                  updated
## 1 0.022680 0.05  nc nc72300081 2014-09-16T11:02:09.739Z
## 2 0.005127 0.02  nc nc72300076 2014-09-16T10:51:08.565Z
## 3 0.010570 0.02  nc nc72300066 2014-09-16T10:51:08.562Z
##                                place       type
## 1    23km SW of Coalinga, California earthquake
## 2 10km NW of The Geysers, California earthquake
## 3          7km W of Cobb, California earthquake
head(dataset.j,3)
##                         time latitude longitude depth mag magType nst gap
## 56  2014-09-16T03:28:31.160Z    36.06     139.9 53.92 5.6      mb  NA  89
## 163 2014-09-15T14:15:31.030Z    42.23     144.9 26.61 4.5      mb  NA 136
## 269 2014-09-15T01:48:38.940Z    27.87     140.9 67.66 4.6      mb  NA  72
##      dmin  rms net         id                  updated
## 56  0.305 1.35  us usb000scur 2014-09-16T09:22:08.131Z
## 163 1.329 0.59  us usb000sciv 2014-09-15T22:19:01.810Z
## 269 1.386 0.93  us usb000scdp 2014-09-15T09:51:04.779Z
##                               place       type
## 56           2km WNW of Iwai, Japan earthquake
## 163      94km SSE of Kushiro, Japan earthquake
## 269 157km NW of Chichi-shima, Japan earthquake

Number of Earthquakes in the past 30days by Magnitude

  • Ration(%)=Japan/World*100
##         World Japan Ratio(%)
## All      8882    40     0.45
## over1.0  5928    40     0.67
## over2.5  1230    40     3.30
## over4.5   382    32     8.40

Histogram

  • World plot of chunk unnamed-chunk-5

  • Japan plot of chunk unnamed-chunk-6