plot_transition_network: Plot the transition network

Description Usage Arguments Value Examples

View source: R/plot_transition_network.R

Description

Generate a network to represent the first order Markov chain transition matrix.

Usage

 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
)

Arguments

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

Value

Network visualisation of the transition matrix

Examples

1
2
3
4
cls <- readClickstreams(file)
edges <- prepare_network_edges(cls)
vertices <- prepare_network_vertices(cls, vertex_labels)
plot_transition_network(edges, vertices)

ryanjessop/ClickViz documentation built on Dec. 31, 2020, 3:14 a.m.