open-AIMS / ADRIA.jl

ADRIA: Adaptive Dynamic Reef Intervention Algorithms. A multi-criteria decision support platform for informing reef restoration and adaptation interventions.
MIT License
14 stars 5 forks source link

Connectivity viz #742

Closed DanTanAtAims closed 5 months ago

DanTanAtAims commented 5 months ago

Add connectivity visualistion method.

dom = ADRIA.load_domain("<Path to Domain>")
in_conn, out_conn, network = ADRIA.connectivity_strength(dom; out_method=eigenvector_centrality)
ADRIA.viz.connectivity(
    dom,
    network,
    out_conn;
    opts=opts,
    fig_opts=fig_opts,
    axis_opts=axis_opts
)

Providing reasonable defaults for the graph visualisation is difficult because of the size of the graph and the variance from south to north. However, the interactivity somewhat remedies this. Feel free to provide suggestions.

Entire

entire_gbr_conn

South

south_gbr_conn

Central

central_gbr_conn

North

north_gbr_conn
ConnectedSystems commented 5 months ago

This is awesome! Thanks!

Providing reasonable defaults for the graph visualisation is difficult because of the size of the graph and the variance from south to north.

What sort of issues are you seeing?

DanTanAtAims commented 5 months ago

This is awesome! Thanks!

Providing reasonable defaults for the graph visualisation is difficult because of the size of the graph and the variance from south to north.

What sort of issues are you seeing?

Edge transparency values that make the connectivity of the central GBR clearly visible make the north and south turn into a mess. The same issues appear for node sizes.

ConnectedSystems commented 5 months ago

Edge transparency values that make the connectivity of the central GBR clearly visible make the north and south turn into a mess. The same issues appear for node sizes.

I see. You could try enforce a minimum/maximum node size/transparency level. Playing with line thickness based on connectivity strength for the edges will also help.

In the end, I don't mind a mess as it's a clear indicator of where a lot of connections exist. And it's alleviated by the interactivity as you say.

DanTanAtAims commented 5 months ago

I've swapped the plot ordering and increased the map alpha to make the outlines more visible.

South

south_gbr_conn_new

North

north_gbr_conn_new