Learn R Programming

fdaPDE (version 0.1-6)

plot.MESH2D: Plot a MESH2D object

Description

Plot a mesh MESH2D object, generated by create.MESH.2D or refine.MESH.2D. Circles indicate the mesh nodes.

Usage

# S3 method for MESH2D
plot(x, ...)

Arguments

x

A MESH2D object defining the triangular mesh, as generated by create.Mesh.2D or refine.Mesh.2D.

...

Arguments representing graphical options to be passed to par.

Examples

Run this code
# NOT RUN {
## Upload the Meuse data and a domain boundary
data(MeuseData)
data(MeuseBorder)
## Create a triangular mesh with the provided boundary
mesh <- create.MESH.2D(nodes = MeuseData[,c(2,3)], segments = MeuseBorder, order = 1)
## Plot it
plot(mesh)
# }

Run the code above in your browser using DataLab