Learn R Programming

fdaPDE (version 1.1-21)

plot.mesh.2D: Plot a mesh.2D object

Description

Plot a mesh.2D object, generated by create.mesh.2D or refine.mesh.2D.

Usage

# S3 method for mesh.2D
plot(x, ...)

Value

No return value

Arguments

x

A mesh.2D 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
library(fdaPDE)

## Upload the quasicirle2D data
data(quasicircle2D)
boundary_nodes = quasicircle2D$boundary_nodes
boundary_segments = quasicircle2D$boundary_segments
locations = quasicircle2D$locations
data = quasicircle2D$data

## Create mesh
mesh = create.mesh.2D(nodes = rbind(boundary_nodes, locations), segments = boundary_segments)

## Plot the mesh
plot(mesh)

Run the code above in your browser using DataLab