plot_signal | R Documentation |
Visualize a signal over a graph.
plot_signal(z, f, size = 0.75, limits = range(f), ...)
z |
A list containing graph data. This list must have the following components:
|
f |
Signal to plot. |
size |
Numeric. Dot size for nodes. Default is 0.75. |
limits |
Set colormap limits. |
... |
Additional arguments passed to |
This function allows visualization of a graph signal f
superimposed on the structure of a graph defined by z
. It offers an intuitive way to analyze the behavior of graph signals in the vertex domain. The appearance of the colorbar can be customized by passing additional arguments that are available for ggplot2::guide_colourbar
.
If node coordinates xy
are not provided, they will be calculated using spectral methods spectral_coords
. For large graphs, this can be computationally intensive and may take significant time. Use with caution for large graphs if node coordinates are not supplied.
plot_graph
, spectral_coords
f <- rnorm(length(grid1$xy[,1]))
plot_signal(grid1, f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.