This function creates a data set based on the volcano data by adding normal errors to the topographic information.

Volcano(sd = 0.3)

Arguments

sd

The standard deviation of the normal errors.

Value

A data frame with coordinates and noisy elevation.

See also

Examples

d <- Volcano()
head(d)
#>         lon      lat          y
#> 1 -36.87764 174.7647 -0.2367639
#> 2 -36.87764 174.7647 -0.2388586
#> 3 -36.87763 174.7647 -0.5366136
#> 4 -36.87763 174.7647  0.4691255
#> 5 -36.87762 174.7647  0.4415208
#> 6 -36.87762 174.7647 -0.2585384

if (FALSE) b <- bamlss(y ~ te(lon,lat,k=10), data = d)
plot(b, theta = -130)
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'plot': object 'b' not found