DominikRafacz / deepdep

Visualise and Explore Deep Dependencies of R packages
https://dominikrafacz.github.io/deepdep/
GNU General Public License v3.0
73 stars 8 forks source link

Change colors in plots #5

Closed kozaka93 closed 4 years ago

kozaka93 commented 4 years ago

Could you change colors of arrows and labels in example plots because they can be prettier ;)

hbaniecki commented 4 years ago

Hi @kozaka93 Thanks for your opinion. Can you propose some nicely looking color palette?

hbaniecki commented 4 years ago

Maybe google https://bookdown.org/ndphillips/YaRrr/more-colors.html

kozaka93 commented 4 years ago

Looks better, also you can use palettes from RColorBrewer such as Set1 or Paired.

ErdaradunGaztea commented 4 years ago

We do now! (Just for edges, though)

Actually, it's ggplot object, so you can save it: g <- plot_dependencies("randomPackage") and just add scales you need, like scale_edge_color_* or scale_fill_*. Let's say, g + scale_fill_brewer("Paired").

But, yeah, default palettes are not perfect yet.