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

View source: R/plot.R

plot.mesh.2DR Documentation

Plot a mesh.2D object

Description

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

Usage

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

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

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)

fdaPDE documentation built on Nov. 10, 2022, 5:06 p.m.