Description Usage Arguments Author(s) See Also Examples
This function plots geostatistical data for up to three data sets.
1 2 |
Y, Yp, Yt |
the vector of response variables |
loc, locp, loct |
n \times 2 matrix that indicates the coordinates of locations |
bdry |
a list containing the coordinates of boundaries |
cols |
the colors used for different sets of response variables |
pchs |
the shapes used for different sets of response variables |
size |
the minimum and maximum of the sizes |
... |
other parameters that control the plotting |
Liang Jing ljing918@gmail.com
locCircle
,
locGrid
,
locSquad
, plotDataBD
, simData
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
loc1 <- locGrid(1, 1, 10, 10)
loc2 <- locCircle(0.72, 60)
loc3 <- locSquad(0.38, 10)
loc <- rbind(as.matrix(loc1) , loc2, loc3); plot(loc)
dat <- simData(loc, cov.par = c(1, 0.2, 1))
Y <- dat$data
plotData(Y[1:nrow(loc1)], loc1,
Y[(nrow(loc1)+1):(nrow(loc1)+nrow(loc2))], loc2,
Y[(length(Y)-nrow(loc3)+1):length(Y)], loc3,
xlab="x", ylab="y", pchs = c(1, 16, 15)
)
# plot boundaries
data(TexasCounty_boundary)
plotData(bdry = TexasCounty.boundary)
# plot data with the boundary
data(Rongelap)
str(Rongelap)
plotData(bdry = Rongelap$borders, Y = Rongelap$data, loc = Rongelap$coords)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.