Documentation for SLiM function changeColors
, which is a method of the
SLiM class SpatialMap
.
Note that the R function is a stub, it does not do anything in R (except bring
up this documentation). It will only do
anything useful when used inside a slim_block
function further
nested in a slim_script
function call, where it will be translated into valid SLiM code as part of a
full SLiM script.
changeColors(valueRange, colors)
An object of type null or integer or float. The default value
is NULL
. See details for description.
An object of type null or string. The default value is
NULL
. See details for description.
An object of type void.
Documentation for this function can be found in the official SLiM manual: page 713.
Changes the color scheme for the target spatial map. The meaning of valueRange and colors are identical to their meaning in defineSpatialMap(), but are also described here. The valueRange and colors parameters travel together; either both are NULL, or both are specified. They control how map values will be transformed into colors, by SLiMgui and by the mapColor() method. The valueRange parameter establishes the color-mapped range of spatial map values, as a vector of length two specifying a minimum and maximum; this does not need to match the actual range of values in the map. The colors parameter then establishes the corresponding colors for values within the interval defined by valueRange: values less than or equal to valueRange[0] will map to colors[0], values greater than or equal to valueRange[1] will map to the last colors value, and intermediate values will shade continuously through the specified vector of colors, with interpolation between adjacent colors to produce a continuous spectrum. This is much simpler than it sounds in this description; see the recipes in chapter 16 for an illustration of its use. If valueRange and colors are both NULL, a default grayscale color scheme will be used in SLiMgui, but an error will result if mapColor() is called.
This is documentation for a function in the SLiM software, and has been reproduced from the official manual, which can be found here: http://benhaller.com/slim/SLiM_Manual.pdf. This documentation is Copyright © 2016-2020 Philipp Messer. All rights reserved. More information about SLiM can be found on the official website: https://messerlab.org/slim/
Other SpatialMap:
SpatialMap
,
add()
,
blend()
,
changeValues()
,
divide()
,
exp()
,
gridValues()
,
interpolate()
,
mapColor()
,
mapImage()
,
mapValue()
,
multiply()
,
power()
,
range()
,
rescale()
,
sampleImprovedNearbyPoint()
,
sampleNearbyPoint()
,
smooth()
,
subtract()