
visreg plots are built with ggplot2. For example:
Graphical options regarding the appearance of points, lines, and bands are specified via the line, fill, and points arguments:
visreg(fit, "Wind",
line = list(color = "red"),
fill = list(fill = "green"),
points = list(size = 2, shape = 1)
)
visreg returns a gg object, so you can use ggplot2 to add additional layers to the graph. For example, we could add a smoother:
visreg(fit, "Wind") + geom_smooth(method = "loess", col = "#FF4E37", fill = "#FF4E37")
Or we could modify the horizontal axis:
visreg(fit, "Wind") + scale_x_sqrt()