-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Continuous color legends #95
Comments
You can do these kinds of plots in The first step to making this easier using the plot package would be to define an API for this type of functionality and work out the implementation from there... |
Yes, I was referring more specifically to the legend. The actual plot can be created using I think we have two options, and it is possible to take both:
but regardless, it is still necessary to modify the way the legend is drawn to facilitate a "gradient continuous color" as shown in the attached image. |
Hi @ralsei, this is not exactly what you were looking for, but it may be of interest for creating the legend: https://alex-hhh.github.io/2021/07/shaded-area-plot.html To adapt the legend from the above post to a continuous gradient, you could draw a rectangle using a special |
Currently, the legend only appears to be controllable with the
#:label
argument. Sometimes, however, this is not what is wanted. Namely, for example, take Figure 3.17 in socviz:Due to the legend, this is not reproducible in plot, as the "color interval" effect towards the right is not controllable with just
#:label
(or at all, for that matter). It would be nice if this was the case.The text was updated successfully, but these errors were encountered: