Skip to content
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

Getting rid of the original color scale after gradient_color layer #148

Closed
atakanekiz opened this issue Jan 7, 2019 · 1 comment
Closed

Comments

@atakanekiz
Copy link

Hello,

Any ideas how I can get rid of the original blue color scale below? I tried removing the legend while creating the initial graph prior to + gradient_color() function, but it gets rid of both color scales that way.

Thanks
Atakan

library(ggpubr)
#> Loading required package: ggplot2
#> Loading required package: magrittr

ggboxplot(iris, "Species", "Sepal.Length", color="Sepal.Width", add="jitter")

ggboxplot(iris, "Species", "Sepal.Length", color="Sepal.Width", add="jitter") + gradient_color(c("black", "red"))

Created on 2019-01-07 by the reprex package (v0.2.1)

@kassambara
Copy link
Owner

fixed now, thanks!

library(ggpubr)
ggboxplot(iris, "Species", "Sepal.Length", color="Sepal.Width", add="jitter") + 
  gradient_color(c("black", "red")) 

Created on 2020-05-10 by the reprex package (v0.3.0.9001)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants