View source: R/visualize-basics.R
symlog | R Documentation |
Makes it possible to use log-stepped scales or coordinate systems even when negative values are included in the data. E.g., in 'coord_trans(x = "symlog")'. 'symlog“ applies a modified logarithm scale to the specified or current axes that handles negative values while maintaining continuity across zero:
symlog(x, C = 0)
inv_symlog(x, C = 0)
symlog_trans()
y = sign(x) * log10(1 + abs(x) / 10^C )
where the scaling constant C determines the resolution of the data around zero. The smallest order of magnitude shown on either side of zero will be 10^ceil(C). If applies as a transform for a ggplot2 coordinate system, C is taken to be 0.
Taken from https://www.mathworks.com/matlabcentral/fileexchange/57902-symlog.
Webber (2012). Measurement Science and Technology .
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.