View source: R/transformations.R
| logit | R Documentation | 
Maps numbers from [0,1] to [-∞,+∞] and back.
logit(x, ...) ## Default S3 method: logit(x, inverse = FALSE, ...) ## S3 method for class 'density' logit(x, inverse = TRUE, ...)
| x | a vector of real numbers (strictly positive if
 | 
| ... | optional arguments to the  | 
| inverse | logical. If  | 
a vector with the same length of x
data(catchments,package='geostats') lp <- logit(catchments$vegetation/100,inverse=FALSE) ld <- density(lp) d <- logit(ld,inverse=TRUE) plot(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.