plot_network | R Documentation |
Plots a gene regulatory network with a semi-circular layout. Good for plotting on top of genome scans. Interaction weights are mapped to edge transparency.
plot_network(arch, trait, xaxis = "location")
arch |
A |
trait |
Name of the trait for which to show the network (as it appears
in |
xaxis |
What to show on the x-axis. Either of "location" for genomic location (continuous between 0 and 1) or "locus" for locus index. |
A ggraph
Somehow the ggraph
library needs to be loaded for this function
to produce the expected output (use library(ggraph)
).
read_architecture
, tidygraph::as_tbl_graph
root <- system.file("extdata", "sim-example", package = "speciomer") arch <- read_architecture(root) arch <- tidygraph::as_tbl_graph(arch) plot_network(arch, trait = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.