Comments (3)
I think this was directly related to #24 - I missed a clone
statement.
Please try the latest version from github
devtools::install_github("SymbolixAU/colourvalues")
Then you should see the expected behaviour
library(colourvalues)
set.seed(123)
x <- runif(10,-10,10)
y <- x
x
y
z <- color_values(y, palette = get_palette("cividis")[256:1, ] )
x
y
z
Note also that colourvalues
has a get_palette()
function for getting various palettes.
from colourvalues.
Thanks very much, @SymbolixAU. The GitHub version does indeed resolve the issue. I gather the clone
statement is on the C++ side, so I'll shield my eyes and pretend I never saw this. :-)
And thanks for the tip about get_palette()
; I knew there were various options but I wasn't clever enough to figure out how to reverse the direction.
from colourvalues.
yeah it's a C++ thing :)
from colourvalues.
Related Issues (20)
- extra control for breaks? - as in image() HOT 5
- get_palette() - return hex HOT 3
- IntegerVector vs NumericVector
- update to cardinal_cubic_b_spline.hpp
- normalise colours
- remove Boost HOT 2
- size_t -> R_xlen_t
- interleaved RGBA vector
- remove local interpolation .hpp file
- support interleave
- List input - n_summaries
- include_alpha = FALSE still returns alpha for NA values HOT 4
- validate na_colour hex input
- interleaved - matrix palettes HOT 1
- ASAN memory leak HOT 2
- Issue generating colors for some palettes HOT 5
- integer64 support
- templates
- Compatibility with older versions of boost HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colourvalues.