# Make a six-state unordered character costmatrix:
unordered_costmatrix <- make_costmatrix(
min_state = 0,
max_state= 5,
character_type = "unordered"
)
# Find the minimal directed graph representation:
convert_costmatrix_to_stategraph(costmatrix = unordered_costmatrix)
# Make a six-state ordered character costmatrix:
ordered_costmatrix <- make_costmatrix(
min_state = 0,
max_state= 5,
character_type = "ordered"
)
# Find the minimal directed graph representation:
convert_costmatrix_to_stategraph(costmatrix = ordered_costmatrix)
# Make a six-state stratigraphic character costmatrix:
stratigraphic_costmatrix <- make_costmatrix(
min_state = 0,
max_state= 5,
character_type = "stratigraphy",
state_ages = c(103, 91.4, 78.2, 73.4, 66.0, 59.7)
)
# Find the minimal directed graph representation:
convert_costmatrix_to_stategraph(costmatrix = stratigraphic_costmatrix)
Run the code above in your browser using DataLab