Creates a series of plots visualizing the diffusion process of a gene's expression over time on a given graph.

VisualizeDiffusion(
  coord,
  init_state,
  P_ls = NULL,
  W = NULL,
  check_time = NULL,
  gene_name = NULL,
  gene_color = "blue"
)

Arguments

coord

matrix; 2D coordinates of cells for visualization.

init_state

matrix; row-wise normalized expression matrix for the initial state.

P_ls

list; list of diffusion operators.

W

matrix; symmetric affinity matrix of the graph.

check_time

vector; time points selected for visualization, e.g., c(2, 16, 128).

gene_name

character; the name of the gene for visualization.

gene_color

character; the color of expression level for visualization. Default is "blue".

Value

A ggplot2 object representing a series of plots visualizing the diffusion process.