Inserts a layer underneath the existing layers on a ggplot
object simply by calling plot
- layer
instead of the usual plot
+
layer
.
Insère un calque sous les calques existants sur un objet ggplot
simplement en appelant plot
- layer
au lieu de l'habituel plot
+
layer
.
# S3 method for gg
-(plot, layer)
The ggplot2 plot
object, with layer layer
added underneath.
L'objet ggplot2 plot
, avec le calque layer
ajouté en dessous.
The plot to which the layer should be added.
Le tracé auquel le calque doit être ajouté.
The layer to add to the plot.
La couche à ajouter au tracé.
From https://stackoverflow.com/a/64011534