GithubHelp home page GithubHelp logo

ucie's Introduction

ucie

The goal of ucie is to map data into CIELab Color Space.

Installation

You can install the released version of ucie from CRAN with:

install.packages("ucie")
or
devtools::install_github("mikelkou/ucie")

Usage

library(ucie)

# returns a data frame with names of data points and colors (hex colors or Lab coordinates)
data2cielab(dataset, WL, Wa, Wb, S, LAB_coordinates)

Example

This is a basic example which shows you how to solve a common problem:

library(ucie)
## basic example code
df <- data.frame(V1=runif(100,  0,1), V2=runif(100,  0,5), V3=runif(100,  0,30))
data_with_colors <- data2cielab(df, Wb=1.2, S=1.6)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

ucie's People

Contributors

mikelkou avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

ucie's Issues

UCIE maps to narrow LAB spectrum microbiome data

U-CIE is a great tool, so simple idea and robust implementation!

I am trying to apply U-CIE to my soil microbiome data (amplicon - 16s rRNA), especially the sample sites. After the UMAP of the community matrix (SITES X GENERA) I supplied the 3d UMAP data to the tool (attached file).

My problem is that the projection of U-CIE to colors is narrow, mostly around green.
I tried to toggle the parameters (both in UI and in R package) but I fail to expand the color coverage.

Screenshot 2023-10-13 at 2 45 20 PM

Is there a way, to cover a bigger part of the color space?

umap_samples_3.txt

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.