Instructions for R/IDL/Matlab/DS9/etc. users
See original GitHub issueWould be good to have instructions on how R
/IDL
/Matlab
/etc users might be able to use the cmasher
colourmaps.
Similarly, for certain application, this might be a good idea as well.
Perhaps in the README or in the online documentation.
- R (3ce67f9)
- IDL
- MATLAB
- DS9
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
DS9 Users Manual - SAOImageDS9
The DS9 Users Manual leads the user step-by-step through many features of ds9, such as data binning and contours. For an in-depth description...
Read more >Untitled
T5220 ilom user guide, My music season 2 episode 5, Nissan skyline godzilla, ... Unterrichtswerke, Simon mayo team radio 2, Anfis matlab source...
Read more >Quick Start Guide: Campus-Wide License
This guide includes detailed instructions for both administrators and end users. Deployment for Individuals (Through MATLAB Portal).
Read more >Untitled
Pan fried swordfish recipe, Kbifq, Calculate inter rater reliability excel, Landshire sandwiches jobs, Lumix tz30 user manual, Weather forecast brundage id, ...
Read more >Debian -- Software Packages in "bullseye", Subsection doc
Secure and unified container for user passwords. libkf5wayland-doc (4:5.78.0-2): Qt library wrapper for Wayland libraries (documentation); libkf5widgetsaddons- ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I used the R package ‘RColorBrewer’ to load in the RGB colour scales. Installing RColorBrewer is very simple:
Run the following code after you first download CMasher (or after every update) to create an RDS object that may be loaded into any R project. Be sure to edit the colormaps_path to the CMasher-master/cmasher/colormaps folder on your machine and the RDSfilepath to where you’d like to save the RDS object for future use.
Then, when you’re ready to load the CMasher scales again, just skip the above and run the following to get the scales back (be sure to update the RDSfilepath of course):
There you go, the colour maps are all contained within the cmr_cmaps R object list. To access a specific colour map, just use the ‘$’ operator : e.g. the rainforest is in cmr_cmaps$rainforest.
Below is an example use:
This is the output plot:
There are many other ways to make colour maps, but these functions are built-into R, so no need to install further packages apart from the RColorBrewer. These should run either in RStudio or on the R command-line. They can be incorporated within scripts easily.
@calofost Thank you very much for the example. I will add it to the documentation as soon as possible.