Closed jemus42 closed 9 years ago
definitely doable. I was thinking of a few sg_color_
functions (e.g. sg_color_brewer
, sg_color_tableau
, sg_color_manual
) and also renaming them to sg_fill_
). thx.
Sounds nice, looking forward to it \o/
the 0.5 push I just made might fill the gap for explicit categorical assignment of manual colors. per the documentation on sg_fill_manual
, the streamgraph javascript code sorts the categorical values before mapping to the color palette, so the assignment is deterministic, just not explicit.
Take a look at ggthemes bob they have a bunch of great color palette I'm sure you could borrow same with Wes Anderson
Alex Bresler
ASBC LLLC asbcllc.com 917-455-0239
abresler@asbcllc.com @abresler On Feb 16, 2015 6:51 AM, "boB Rudis" notifications@github.com wrote:
definitely doable. I was thinking of a few sgcolor functions (e.g. sg_color_brewer, sg_color_tableau, sg_color_manual) and also renaming them to sgfill). thx.
— Reply to this email directly or view it on GitHub https://github.com/hrbrmstr/streamgraph/issues/5#issuecomment-74497605.
that's where I got Tableau from; and the wes anderson are sweet. looks like all one needs to do to use them in here is something like sg_fill_manual(values=wes_palette("GrandBudapest"))
Closing issue for basic feature creation. Will look to added named support in a future release.
Consider the example data:
I would like to manually specifiy the colour for each value of
genre
instead of relying on a predefined palette. A named vector would suffice, such as:c(Action = "black", Animation = "grey", Comedy = "blue", …)
This would allow greater customizability of the output, and also be more intuitive for people like me, who are used to
ggplot2
and it's scale specifications.