R/plot_mesh.R
plot_mesh.Rd
Plot a mesh object
plot_mesh(mesh, file_name = NULL)
A mesh object from sdmTMB::make_mesh()
sdmTMB::make_mesh()
Optional file path to save the plot. If NULL, plot is returned but not saved.
NULL
A ggplot object
if (FALSE) { # \dontrun{ mesh <- sdmTMB::make_mesh(data, xy_cols = c("x", "y"), n_knots = 500) # Return plot without saving p <- plot_mesh(mesh, file_name = NULL) print(p) } # }