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

Description Usage Arguments Examples

View source: R/plot.R

Description

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

Usage

1
2
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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 July 2, 2020, 2:22 a.m.