calmr_model_graph | R Documentation |
patch_graphs()
patches graphs with 'patchwork'
calmr_model_graph(
x,
loops = TRUE,
limits = max(abs(x$value)) * c(-1, 1),
colour_key = FALSE,
t = max(x$trial),
options = get_graph_opts()
)
patch_graphs(graphs, selection = names(graphs))
get_graph_opts(graph_size = "small")
x |
A |
loops |
Logical. Whether to draw arrows back and forth |
limits |
Numerical. Limits for color scale. Defaults to max(abs(x$value))*c(-1,1). |
colour_key |
Logical. Whether to show the color key |
t |
The trial from which weights are obtained (defaults to the maximum trial in the data). |
options |
A list with graph options, as returned by |
graphs |
A list of (named) graphs, as returned by |
selection |
A character or numeric vector determining the plots to patch. |
graph_size |
A string (either "small" or "large"). to return default values for small or large graphs |
trial |
Numerical. The trial to graph. |
A 'ggplot' object
patch_graphs()
returns a 'patchwork' object
A list with graph options, to be passed to ggnetwork::geom_nodes()
.
You should probably be getting graphs via the graph method for CalmrExperiment.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.