Description Usage Arguments Value See Also Examples
View source: R/maths_functions.R
Transforms a given value from the scale of 0-1 to min-max, either directly to a linear scale or via a log scale
| 1 | fromUnitScale1(x, min = 1, max = 100, logflag = FALSE, logbase = 10)
 | 
| x | numeric value to be transformed | 
| min | the bottom of the linear scale. Defaults to 1 | 
| max | the top of the linear scale. Defaults to 100 | 
| logflag | Optional flag to convert to a unit scale via the log scale. Defaults to FALSE | 
| logbase | Optional numeric value to be used as the base for the log scale | 
numeric value with the converted input
toUnitScale inverse function
| 1 2 | fromUnitScale(0.5,20,80)
fromUnitScale(0.33,0,16,TRUE,10)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.