Description Usage Arguments Value Examples
View source: R/plot_transition_network.R
Generate a network to represent the first order Markov chain transition matrix.
1 2 3 4 5 6 7 8 9 10 | plot_transition_network(
network_edges,
network_vertices,
edge_width_factor = 5,
edge_arrow_size = 0.6,
edge_curve_factor = 0.5,
vertex_size_factor = 1.2,
legend_x_position = -3,
legend_y_position = -0.5
)
|
network_edges |
Network edges data |
network_vertices |
Network vertices data |
edge_width_factor |
Transform the edge width values |
edge_arrow_size |
Set the arrow size |
edge_curve_factor |
Set the edge curve |
vertex_size_factor |
Transform the vertex size values |
legend_x_position |
x-axis value for the legend |
legend_y_position |
y-axis value for the legend |
Network visualisation of the transition matrix
1 2 3 4 | cls <- readClickstreams(file)
edges <- prepare_network_edges(cls)
vertices <- prepare_network_vertices(cls, vertex_labels)
plot_transition_network(edges, vertices)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.