Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing graph layout #91

Open
jarrod-dalton opened this issue Sep 25, 2015 · 0 comments
Open

Changing graph layout #91

jarrod-dalton opened this issue Sep 25, 2015 · 0 comments

Comments

@jarrod-dalton
Copy link
Collaborator

Here's a small issue that will improve visualization in certain types of networks. Can we add functionality to change the layout in plot.HydeNetwork()?

See this network for example:

g <- HydeNetwork(~ FarmersMarketReadiness | CommunityReadiness*PractitionerCapacity*SocioPoliticalContext
                 + CommunityReadiness|OrgCapacity*SocialCapital*Awareness*Logistics*Sustainability*Perceptions*Physical
                 + OrgCapacity|PractionerBudget*CommunityBudget*PractitionerHumanCap*CommunityHumanCap*Resources
                 + SocialCapital|AvailableNetworks*ConnectedToNetworks
                 + Awareness|RaisingAwareness*Advertising
                 + Logistics|Transportation*Cost
                 + Sustainability|PercievedSustainability*Ideas
                 + Perceptions|CommunityAwareness*CommunityPerception
                 + Physical|Access*AcceptablePlaces
                 + PractitionerCapacity|Experience*Exposure*CHC_Experience
                 + SocioPoliticalContext|Culture*CommunitySkills*TimeConstraints*HealthyLifestyle*LifestyleChanges*Tastes*HealthyFood
                 )
g <- setDecisionNodes(g, CommunityReadiness, PractitionerCapacity, SocioPoliticalContext)
g <- setUtilityNodes(g, FarmersMarketReadiness)
plot(g)

image

The DiagrammeR packages has options for specifying graph layout. See the section on GraphViz Engines in http://rich-iannone.github.io/DiagrammeR/graphviz.html. Below is a figure from that site:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants