Insert Layer underneath existing layers in ggplot2 object
问题 Given an Existing plot object is it possible to add a layer UNDERNEATH an existing layer? Example, in the graph below, is it possible to add geom_boxplot() to P such that the boxplot appears underneath geom_point() ? ## Starting from: library(ggplot2) P <- ggplot(data=dat, aes(x=id, y=val)) + geom_point() ## This adds boxplot, but obscures some of the points P + geom_boxplot() Expected Output: # Which is essentially ggplot(data=dat, aes(x=id, y=val)) + geom_boxplot() + geom_point() ## However