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

Visualize flexibly mapped primary attribute in graph. #18

Closed
1 of 2 tasks
alexsb opened this issue Feb 10, 2017 · 3 comments
Closed
1 of 2 tasks

Visualize flexibly mapped primary attribute in graph. #18

alexsb opened this issue Feb 10, 2017 · 3 comments
Assignees
Labels

Comments

@alexsb
Copy link
Member

alexsb commented Feb 10, 2017

As discussed in #17, we want to be able to select a primary and a secondary attribute for direct mapping in the graph.

The primary mapping will determine the node color. For categorical values, we will choose a qualitative color scale (black/white for binary categories, this colorbrewer scale for multiple categories) and visualize a legend of the color scale at the bottom of the graph.

For continuous color values, we will use a quantitative color brewer scale, appropriately treating quantitative continuous and diverging scales. Again, we will visualize a legend at the bottom of the graph.

Two components:

  • One-node mapping works.
  • Legends implemented.
@cnobre
Copy link
Collaborator

cnobre commented Feb 11, 2017

primary_attribute

secondary_attribute

@alexsb
Copy link
Member Author

alexsb commented Mar 5, 2017

We decided to use the node to always encode a binary value (primary phenotype yes/no). When the primary phenotype is binary, this is all that is to do.

In cases where the binary value is derived from a continuous or categorical value, we will use a bar to the left of the node. For categorical values, this will be a color. For numerical values, this will be a bar with a height proportional to the value.

@alexsb
Copy link
Member Author

alexsb commented Mar 16, 2017

Works!

@alexsb alexsb closed this as completed Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants