plot.MESH2D: Plot a MESH2D object

Description Usage Arguments Examples

View source: R/mesh.2D.R

Description

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

Usage

1
2
## S3 method for class '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

1
2
3
4
5
6
7
## 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)

Example output

Loading required package: rgl
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

fdaPDE documentation built on May 29, 2017, 9:06 a.m.