# NOT RUN {
library(rgl)
library(sphereplot)
library(geosphere)
#### example 1: earthquake data
data(Earthquake)
names(Earthquake)
earthquake <- cbind(Earthquake$longitude, Earthquake$latitude)
# }
# NOT RUN {
SPC.Hauberg(earthquake, q = 0.1)
# }
# NOT RUN {
#### example 2: waveform data
n <- 200
alpha <- 1/3 # amplitude
freq <- 4 # frequency
sigma <- 2
lon <- seq(-180, 180, length.out = n)
lat <- alpha * 180/pi * sin(lon * pi/180 * freq) + 10 + sigma * rnorm(length(lon))
wave <- cbind(lon, lat)
# }
# NOT RUN {
SPC.Hauberg(wave, q = 0.05)
# }
Run the code above in your browser using DataLab