logposneg | R Documentation |
Function that transforms a vector of numbers x into log10(x) if positive, 0 if 0, -log10(-x) if negative, useful for graphing something on a log scale when it has negative values. This log scale expands outward from zero in both directions.
logposneg(x)
x |
numeric vector, required |
A numeric vector of same length as x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.