plot_mesh: Plot a one dimensional mesh

View source: R/mesh_set.R

plot_meshR Documentation

Plot a one dimensional mesh

Description

Plot a one dimensional mesh

Usage

plot_mesh(
  mesh,
  y = 0,
  color.nodes = "black",
  color.mesh = "darkgray",
  alpha = 0.4,
  ...
)

Arguments

mesh

1-dimensional mesh to draw

y

ordinate value where to draw the mesh

color.nodes

color of the mesh nodes

color.mesh

color of the mesh elements

alpha

transparency of the mesh elements & nodes

...

optional arguments passed to plot function

Examples

plot_mesh(mesh_exsets(function(x) x, threshold=.51, sign=1, intervals=rbind(0,1)))
plot_mesh(mesh_exsets(function(x) (x-.5)^2, threshold=.1, sign=-1, intervals=rbind(0,1)))

IRSN/DiceView documentation built on Jan. 31, 2024, 10:09 a.m.