Giter Club home page Giter Club logo

Comments (4)

hoesler avatar hoesler commented on July 20, 2024

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

from iwanthue.

dksamuel avatar dksamuel commented on July 20, 2024

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).

from iwanthue.

hoesler avatar hoesler commented on July 20, 2024
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

from iwanthue.

dksamuel avatar dksamuel commented on July 20, 2024

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).

from iwanthue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.