Closed hffqyd closed 4 years ago
Hey!
Thanks for your amazing tool.
Thank you, glad you find it useful!
but I cannot find a way to set the fill color manually?
You cannot find a way to do it, because at the moment that functionality isn't exposed yet. It's straight forward to add though. I'll take a look at it today.
Once #88 is merged, this is possible as you would expect, via scale_fill_manual
by providing a table, which maps all values found in the fill column to custom colors.
See the recipe here:
Please let me know if this solves the issue for you (the PR is merged now and I released a new version).
After updated to v0.3.17, I tested the code in "recipes.org" , it worked and was what I want. Thanks for your very kindly help!
That's great to hear!
Thanks for your amazing tool. It was going all right when I did a heatmap-like plot using
geom_tile()
, but I cannot find a way to set the fill color manually? How can I do that in ggplotnim likescale_fill_manually()
in ggplot2 package in R? Where can I find the answer? Thanks a lot for your help!The code is below, it had been tested on Nim Version 1.2.0 [MacOSX: amd64]: