This function allows you to change the order in which layers are added to a ggplot.
Arguments
- layer
A
layer geometry
object to be added.- order
An integer indicating the position at which the layer should be added. If
<= 0
, the layer will be added at the beginning. If greater than the number of plot layers, it will be added at the end.