layout_manipulate | R Documentation |
functions to manipulate an existing layout
layout_rotate(xy, angle) layout_mirror(xy, axis = "vertical")
xy |
graph layout |
angle |
angle for rotation |
axis |
mirror horizontal or vertical |
These functions are mostly useful for deterministic layouts such as layout_with_stress
manipulated matrix of xy coordinates
David Schoch
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.