Skip to content

nicer edge labels in visCompartment() #2

@papsti

Description

@papsti

would be nice for the visNetwork graphic to read the flow type from sir$flows() and generate an edge label with the full flow.

for instance, for the sample SIR model, we have

sir$flows()
  from to  flow       type
1    S  I   foi per_capita
2    I  R gamma per_capita

currently, the edges of the compartmental graph are labelled simply with the entry in flow. it would be clearer if these flows were labelled with the compound entry flow * from (since type is per_capita). we'd have to write a labeller based on type.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions