Description Usage Arguments Value Examples
Plotting line chart dataset and fit.values of the Seasonal GSTAR model.
1 |
formula |
an object from the output from sgstar() function. |
returns output a list that shown line chart for each location.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(sgstar)
data("coords")
data("simulatedata")
#create weight matrix using distance inverse matrix
z<-dist(coords,method = "euclidean")
z <- as.matrix(z)
matriksd <- 1/z
matriksd[is.infinite(matriksd)] <- 0
matriksd_w <- matriksd / rowSums(as.data.frame(matriksd))
fit <- sgstar(data = simulatedata, w = matriksd_w, p = 2,ps = 1, s =4)
plot1 <- plot_sgstar(fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.