Is it possible to control the order in which nodes and edges are drawn in an igraph plot? Something similar to the way ggplot2 plots points in the order that they are arranged in the dataframe. I know that there is bound to be overlap in plotted nodes and edges, but I'd like to be able to control which are most visible (i.e. the ones plotted on the top). I have a graph with some overlap below.
library(igraph)
library(scales)
col_fun <- colorRampPalette(c('tomato', 'skyblue'))
g <- erdos.renyi.game(100, .025)
V(g)$label <- NA
V(g)$size <- scales::rescale(degree(g), c(5,15))
V(g)$color <- col_fun(vcount(g))
E(g)$color <- col_fun(ecount(g))
plot(g)


