GeoScatterplot {GeoModels} | R Documentation |
h-scatterplot for space and space-time data.
Description
The function produces h-scatterplots for the spatial, spatio-temporal and bivariate setting.
Usage
GeoScatterplot(data, coordx, coordy=NULL, coordt=NULL, coordx_dyn=NULL,
distance='Eucl', grid=FALSE, maxdist=NULL,neighb=NULL,
times=NULL, numbins=4, radius=6371, bivariate=FALSE,...)
Arguments
data |
A |
coordx |
A numeric ( |
coordy |
A numeric vector assigning 1-dimension of
spatial coordinates; |
coordt |
A numeric vector assigning 1-dimension of
temporal coordinates. Optional argument, the default is |
coordx_dyn |
A list of |
distance |
String; the name of the spatial distance. The default
is |
grid |
Logical; if |
maxdist |
A numeric value denoting the spatial maximum distance, see the Section Details. |
neighb |
Numeric; an optional positive integer indicating the order of neighborhood. See the Section Details for more information. |
times |
A numeric vector denoting the temporal instants involved Details. |
numbins |
A numeric value denoting the numbers of bins, see the Section Details. |
radius |
Numeric; a value indicating the radius of the sphere when using the great circle distance. Default value is the radius of the earth in Km (i.e. 6371) |
bivariate |
Logical; if |
... |
Optional parameters passed to the plot function. |
Details
h-scatterplot is the plot of the pair values that are neighborhood of a certain order or with distances belonging to a certain interval. In the first case a (vector of) neighborhood must be specified. In the second case a maximum distance (maxdist) and a number of lag-bins (numbins) must be specified. The method based on neighborhoods is recommended in particular for large datasets.
Value
Produces a plot. No values are returned.
Author(s)
Moreno Bevilacqua, moreno.bevilacqua89@gmail.com,https://sites.google.com/view/moreno-bevilacqua/home, Víctor Morales Oñate, victor.morales@uv.cl, https://sites.google.com/site/moralesonatevictor/, Christian", Caamaño-Carrillo, chcaaman@ubiobio.cl,https://www.researchgate.net/profile/Christian-Caamano
Examples
library(GeoModels)
set.seed(514)
NN = 600
coords = cbind(runif(NN),runif(NN))
param = list(mean=0,sill=1,nugget=0,power2=4,scale=0.4,smooth=0)
corrmodel = "GenWend"; model = "Gaussian"
data = GeoSim(coordx = coords,corrmodel = corrmodel,
model = model,param = param)$data
# h-scatterplots for given a vector of neighborhoods
GeoScatterplot(data,coords,neighb=c(2,4))