Open bschilder opened 2 months ago
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.