Controlling color in ggparcoord (from GGally package)

后端 未结 1 555
失恋的感觉
失恋的感觉 2021-01-16 02:30

I am trying to hard-code the desired line color for a particular ggparcoord plot. For instance, when I create my ggparcoord plot below:

library(GGally)
x = d         


        
1条回答
  •  囚心锁ツ
    2021-01-16 02:52

    You should be able to map the colour (darkgreen) to a corresponding factor level (green) by adding:

    + scale_colour_manual(values = c("green" = "darkgreen"))
    

    0 讨论(0)
提交回复
热议问题