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

custom color palette? #29

Closed
ignacio82 opened this issue Aug 6, 2015 · 2 comments
Closed

custom color palette? #29

ignacio82 opened this issue Aug 6, 2015 · 2 comments

Comments

@ignacio82
Copy link

Is there a way to use a custom palette? The help file only mentions "tableau10medium", "gray5", "colorblind10", "purplegray12", "bluered12", "greenorange12", "cyclic".

library(taucharts)
tauchart(mtcars) %>%
  tau_point("wt", "mpg", color="cyl") %>%
  tau_color_tableau(palette = "bluered12") %>% 
  tau_legend()

Can I use, for example, this one?

Thanks!

@hrbrmstr
Copy link
Owner

hrbrmstr commented Aug 6, 2015

Please take a look at the whole package help. It covers tau_color_brewer
(which that is) as well as a host of others. The tau_color_manual
function really lets you use any palette you can generate (which is really
any palette).

On Thu, Aug 6, 2015 at 3:26 PM, ignacio82 notifications@github.com wrote:

Is there a way to use a custom palette? The help file only mentions
"tableau10medium", "gray5", "colorblind10", "purplegray12", "bluered12",
"greenorange12", "cyclic".

library(taucharts)
tauchart(mtcars) %>%
tau_point("wt", "mpg", color="cyl") %>%
tau_color_tableau(palette = "bluered12") %>%
tau_legend()

Can I use, for example, this one
http://colorbrewer2.org/?type=diverging&scheme=Spectral&n=3?

Thanks!


Reply to this email directly or view it on GitHub
#29.

@ignacio82
Copy link
Author

Thanks!

library(taucharts)
tauchart(mtcars) %>%
  tau_point("wt", "mpg", color="cyl") %>%
  tau_color_manual(c("#fc8d59", "#ffffbf", "#99d594")) %>% 
  tau_legend()

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

No branches or pull requests

2 participants