# NOT RUN {
# Some features use the INLA package.
if (require("INLA", quietly = TRUE)) {
# Load INLA
library(INLA)
# Create a 1D mesh
mesh = inla.mesh.1d(seq(0,10,by=0.5))
# Plot it
ggplot() + gg(mesh)
# Plot it using a different shape and size for the mesh nodes
ggplot() + gg(mesh, shape = "|", size = 5)
}
# }
Run the code above in your browser using DataLab