shosaco / vistime

Pretty timelines in R.
https://shosaco.github.io/vistime
GNU General Public License v3.0
168 stars 11 forks source link

Allow to map data attributes to color #20

Open holgerbrandl opened 3 years ago

holgerbrandl commented 3 years ago

Currently, with col.color the user has to provide actual color names. It would be more convenient if a data attribute could be mapped to color. As in ggplot with ggplot(iris, aes(..., color=Species) + geom_point()

E.g. I have a column with event type, and I'd love to color all events of the same type using the same color.

shosaco commented 3 years ago

That is a great idea, will put that on my list.