You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be nice to have a theme_monarch function that gives plots some useful attributes.
Relates to #24.
1.
Provide consistent colors for categories, predicates, etc. Atm the colors are just the ggplot defaults, which randomly assign the default colors to whichever variable comes first. This makes it harder to compare plots with semi-overlapping sets of categories.
Could even use the same icons that Monarch uses for Phenotypes/Disease/Genes/etc. Image resources here.
5.
Pretty layouts, especially when plotting in different common use cases (eg gene-pheno-disease relationships with lots of connections). Edge bundling with gggraph::geom_edge_bundle_force2 can be very helpful here for making hairballs more manageable.
The text was updated successfully, but these errors were encountered:
Very much agreed and great ideas, thanks for working on this! One challenge might be that different KGs have different category/relationship labels, so hard-coding a palette against them could be tricky. One option is to use the kg prefs feature (I'm starting to wonder how much to lean on that...).
Another trick I've used in the past for similar issues is to generate a largish palette, and then hash labels and map them to an int mod the palette size to identify a psuedo-random color choice that is repeatable.
Very much agreed and great ideas, thanks for working on this! One challenge might be that different KGs have different category/relationship labels, so hard-coding a palette against them could be tricky. One option is to use the kg prefs feature (I'm starting to wonder how much to lean on that...).
Very true, I was thinking of only using the hard-coded palette when the KG is the official Monarch KG.
Another trick I've used in the past for similar issues is to generate a largish palette, and then hash labels and map them to an int mod the palette size to identify a psuedo-random color choice that is repeatable.
For all other KGs, doing something like this seems like the best way to go.
I think it would be nice to have a
theme_monarch
function that gives plots some useful attributes.Relates to #24.
1.
For example
PhenotypicFeature is turquoise:
PhenotypicFeature is now blue:
2.
3.
4.
5.
gggraph::geom_edge_bundle_force2
can be very helpful here for making hairballs more manageable.The text was updated successfully, but these errors were encountered: