Keywords: 2010 canterbury aftershocks by depth.svg Plot of 2010 Canterbury earthquake aftershocks by depth and time Author Tayste Data source GeoNet NZ License GNU public domain free content Software R Source code <pre> Plot of 2010 Canterbury earthquake aftershocks by depth and time Author Tayste License GNU public domain free content Software R Data from GeoNet New Zealand earthquakes csv is the file returned by a query to http //magma geonet org nz/resources/quakesearch/ Choose output format CSV Time location z mag library RSvgDevice quakes read csv 'earthquakes csv' row names NULL R gets confused by extra empty column names quakes c names quakes -1 QuakeTime Try to adjust for that stopifnot all quakes ORI_YEAR 2010 Check column names aligned with data quakes QuakeTime with quakes ISOdatetime ORI_YEAR ORI_MONTH ORI_DAY ORI_HOUR ORI_MINUTE ORI_SECOND tz UTC attr quakes QuakeTime tzone NZ ` inrange ` <- function x limits x > limits1 x < limits2 chch subset quakes QuakeTime > as POSIXct 2010-09-04 LONG inrange c 172 174 LAT inrange c -45 -42 devSVG '2010_canterbury_aftershocks_by_depth svg' width 8 height 6 inches par mar c 6 6 3 1 0 2 cex 1 with chch plot QuakeTime DEPTH ylim rev range DEPTH pch 16 cex MAG 2/6 col rgb 0 1 0 1 0 1 0 2 main Canterbury aftershocks by Depth and Time ylab Depth km title sub Data source GeoNet dev off </pre> Transferred from http //en wikipedia org en wikipedia; transferred to Commons by User Logan using http //tools wikimedia de/~magnus/commonshelper php CommonsHelper 2010-09-08 Tayste at http //en wikipedia org en wikipedia en wikipedia Tayste Original upload log page en wikipedia 2010_canterbury_aftershocks_by_depth svg 2010-09-08 03 41 Tayste 578×434× 46616 bytes <nowiki>Plot of 2010 Canterbury earthquake aftershocks by depth and time Author Tayste Data source GeoNet NZ License GNU public domain free content Software R</nowiki> Plots |