Rescale Layout
Description
Rescale the coordinates of the layout.
Usage
rescale_layout(g, scale = c(-1000, 1000))
Arguments
Argument | Description |
---|---|
g | An object of class graph as returned by graph or a graph_proxy as returned by a function of the same name. |
scale | A vector or 2 values defining the output range to rescale the coordinates. |
Examples
g <- make_data()
graph(g) %>%
graph_layout_static(scaling = NULL) %>%
rescale_layout()