plot_interp: Plots an interpolated field from a mesh

Description Usage Arguments Value Examples

Description

This function takes a Mesh and a column name in the mesh, to generate an interpolated field of the indicated column

Usage

1
2
3
4
5
6
7
plot_interp(x, y, ds, ...)

## S4 method for signature 'FEBasis,character'
plot_interp(x, y, ds = 40, ...)

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

Arguments

x

a Mesh object

y

a character indicated which column to plot

ds

the resolution of the plot (defaulted to 40 x 40)

max

upperbound on colour scale

min

lowerbound on colour scale

Value

a ggplot2 object

Examples

1
2
3
4
5
6
## 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_interp(Mesh,"z",ds=200)
## End(Not run)

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