Skip to contents

Create a network graph showing cell-cell communication.

Usage

PlotNetwork(
  x,
  metric = c("count", "specificity", "mean", "sum"),
  layout = c("circle", "kk", "fr"),
  min_weight = 0,
  node_size = "auto",
  edge_width = c(0.5, 3),
  show_labels = TRUE,
  colors = NULL,
  title = NULL
)

Arguments

x

NOVAResult or NOVADiffResult object

metric

Metric for edge weight: "count", "specificity", "mean", "sum"

layout

Network layout: "circle", "kk" (Kamada-Kawai), "fr" (Fruchterman-Reingold)

min_weight

Minimum weight to show edge

node_size

Node size ("auto" for proportional to cell count)

edge_width

Range of edge widths

show_labels

Show node labels

colors

Node color palette

title

Plot title

Value

ggplot object

Examples

if (FALSE) { # \dontrun{
PlotNetwork(result)
PlotNetwork(result, layout = "circle")
} # }