Learn R Programming

DiceView (version 2.2-0)

plot_mesh: Plot a one dimensional mesh

Description

Plot a one dimensional mesh

Usage

plot_mesh(mesh, y = 0, color = "black", ...)

Arguments

mesh

1-dimensional mesh to draw

y

ordinate value where to draw the mesh

color

color of the mesh

...

optional arguments passed to plot function

Examples

Run this code
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)))

Run the code above in your browser using DataLab