Skip to contents

Plot a program network with a scoped native layout

Usage

plot_factor_network(
  network,
  layout = "fr",
  seed = 42L,
  highlight = NULL,
  groups = NULL,
  gene_labels = "highlighted"
)

Arguments

network

Result of factor_network.

layout

fr or stress (ggraph native stress implementation).

seed

Scoped layout and label seed.

highlight

Factor IDs to emphasize.

groups

Named factor group vector.

gene_labels

all, highlighted, none, or explicit gene IDs.

Value

Plot with deterministic layout coordinates and provenance.

Author

Mikhael Manurung; conceptual ImmGen-T workflow (Ziang Zhang / AgueroZZ repository). Layouts by igraph and ggraph authors; see credits.