View source: R/transformIntensity.R
transformIntensity | R Documentation |
Intensity transformation for SPPs
transformIntensity(
spp,
method = "z-score",
irange = c(0, 1),
forceRange = TRUE
)
spp: |
a spatial point pattern of type 'ppp' with its 'marks' being a dataframe with two columns 'idx'and 'intensity'. |
method: |
a character specifying the method of transformation, one of 'c("z-score", "sqrt", "scaling")' such that 'z-score' represents (analyte-wise) standardization (subtraction of mean and division by std), 'sqrt' is the square root transformation and 'scaling' is linear mapping of intensities into [0,1] range. |
irange: |
a numeric vector of two elements speciying the output range of the scalled intensities. |
forceRange: |
logical, whether to force-map the intensities in to the range given by 'irange' regardless of the 'method' used. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.