powered by
functions to manipulate an existing layout
layout_rotate(xy, angle)layout_mirror(xy, axis = "vertical")
layout_mirror(xy, axis = "vertical")
graph layout
angle for rotation
mirror horizontal or vertical
manipulated layout
These functions are mostly useful for deterministic layouts such as layout_with_stress
# NOT RUN { library(igraph) g <- sample_gnp(50,0.3) xy <- layout_with_stress(g) #rotate 90 degrees xy <- layout_rotate(xy,90) # flip horizontally xy <- layout_mirror(xy,"horizontal") # }
Run the code above in your browser using DataLab