plot_network: Plot network of nodes and edges

Description Usage Arguments

View source: R/plot.R

Description

Produce a simple plot of nodes connected by all pairwise edges, where edge colours correspond to statistical distances. Edges with NA values are not plotted.

Usage

1
2
3
4
5
6
7
8
plot_network(
  proj,
  col_scale = rev(PlasmoMAPI::col_hotcold()),
  zlim = NULL,
  node_size = 2,
  edge_size = 1,
  base_plot = NULL
)

Arguments

proj

object of class pm_project.

col_scale

the colour scale to use.

zlim

the limits of the colour scale. If NULL then these limits are chosen automatically.

node_size, edge_size

the plotted size of nodes and edges.

base_plot

optional base plot (object of class ggplot) on which this function builds. If NULL then a simple empty plot is used.


mrc-ide/PlasmoMAPI documentation built on Oct. 1, 2020, 9:41 a.m.