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

please a tutorial for using iwanthue use in R / ggplot2 #7

Open
dksamuel opened this issue Mar 1, 2014 · 4 comments
Open

please a tutorial for using iwanthue use in R / ggplot2 #7

dksamuel opened this issue Mar 1, 2014 · 4 comments

Comments

@dksamuel
Copy link

dksamuel commented Mar 1, 2014

Iwanthue is so nice , will anyone make a tutorial for using iwanthue use in R / ggplot2, thanks

@hoesler
Copy link

hoesler commented Jan 21, 2015

I created a simple package to generate an Iwanthue palette in R: https://github.com/hoesler/rwantshue

@dksamuel
Copy link
Author

Please show me one tutorial, I run the commands, but where is the color
palette, thanks Dr.Samuel, India

On Thu, Jan 22, 2015 at 5:19 AM, Christoph Hösler [email protected]
wrote:

I created a simple package to generate an Iwanthue palette in R:
https://github.com/hoesler/rwantshue

Reply to this email directly or view it on GitHub
#7 (comment).

@hoesler
Copy link

hoesler commented Jan 22, 2015

library(rwantshue)
color_scheme <- iwanthue()
color_scheme$hex(8)

should produce something like

[1] "#92C3AE" "#B15BCA" "#C0513A" "#84CA54" "#4C4538" "#7E82B6" "#BDA04D" "#B0517A"

I use it to scale color in ggplot like this:

gg <- gg + scale_color_manual(values = color_scheme$hex(nrow(data)))

Does that answer your question?
Please be sure to install the latest version as described in the install section of the readme.

Cheers, Christoph

@dksamuel
Copy link
Author

Dear Christoph, it answers my question, thanks Samuel

On Thu, Jan 22, 2015 at 3:35 PM, Christoph Hösler [email protected]
wrote:

library(rwantshue)color_scheme <- iwanthue()color_scheme$hex(8)

should produce something like

[1] "#92C3AE" "#B15BCA" "#C0513A" "#84CA54" "#4C4538" "#7E82B6" "#BDA04D"
"#B0517A"

I use it to scale color in ggplot like this:

gg <- gg + scale_color_manual(values = color_scheme$hex(nrow(data)))

Does that answer your question?
Please be sure to install the latest version as described in the install
section of the readme.

Cheers, Christoph

Reply to this email directly or view it on GitHub
#7 (comment).

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