plot: Plot meshes and observations

Description Usage Arguments Value Examples

Description

This function is the general one used for plotting/visualising objects with MVST.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot(x, y, ...)

## S4 method for signature 'FEBasis,character'
plot(x, y, ...)

## S4 method for signature 'Obs,character'
plot(x, y, ...)

## S4 method for signature 'Obs_poly,character'
plot(x, y, ...)

Arguments

x

an MVST object of class Obs or Basis_GMRF

y

a character indicated which column to plot

...

other parameter used to configure the plot. These include max (upperbound on colour scale) and min (lowerbound on colour scale)

Value

a ggplot2 object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data(surf_fe)
Mesh <- initFEbasis(p=surf_fe$p, t = surf_fe$t, M = surf_fe$M, K = surf_fe$K)
Mesh["z"] <- sin(Mesh["x"]/1000)*cos(Mesh["y"]/1000)
g <- plot(Mesh,"z")

data(icesat)
icesat_obs <- Obs(df=icesat)
plot(subset(icesat_obs,t==2),"z",min=-0.5,max=0.5)
## End(Not run)

shazhe/mvst0 documentation built on May 29, 2019, 9:20 p.m.