Visualize Base Class
Visualizer2D.Rd
This class is used to create 2D visualizations.
Public fields
grid
(`list()`)
List with the `x1` and `x2` grid.zmat
(`matrix()`)
The result of evaluation at each element of the cross product of `grid$x1` and `grid$x2`.plot_lab
(character(1)
Label of the plot.x1_lab
(character(1)
Label of the x1 axis.x2_lab
(character(1)
Label of the x2 axis.z_lab
(character(1)
Label of the z axis.
Methods
Method new()
Creates a new instance of this [R6][R6::R6Class] class.
Usage
Visualizer2D$new(
grid,
zmat,
plot_lab = NULL,
x1_lab = "x1",
x2_lab = "x2",
z_lab = "z"
)
Arguments
grid
(`list()`)
List with the `x1` and `x2` grid.zmat
(`matrix()`)
The result of evaluation at each element of the cross product of `grid$x1` and `grid$x2`.plot_lab
(`character(1)`)
Label of the plot.x1_lab
(`character(1)`)
Label of the x1 axis.x2_lab
(`character(1)`)
Label of the x2 axis.z_lab
(`character(1)`)
Label of the z axis.
Method init_layer_surface()
Initialize the plot as 3D surface.
Arguments
opacity
(`numeric(1)`)
Opacity of the layer.colorscale
(`list()`)
The coloring of the surface.show_contours
(`logical(1)`)
Indicator whether to show the contours of the surface.show_title
(`logical(1)`)
Indicator whether to show the title of the plot....
(`any`)
Further arguments passed to `add_trace(...)`.
Method save()
Save the plot by using plotlys `save_image()` function.