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.20147790
#> 2 -36.87764 174.7647  0.28026804
#> 3 -36.87763 174.7647 -0.35315585
#> 4 -36.87763 174.7647 -0.34710533
#> 5 -36.87762 174.7647  0.16017795
#> 6 -36.87762 174.7647  0.07284571

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