clip.data | R Documentation |
Set all data values outside the given quantile range to the border values. This is useful to properly visualize morphometry data that includes outliers. These outliers negatively affect the colormap, as all the non-outlier values become hard to distinguish. This function can be used to filter the data before plotting it.
clip.data(data, lower = 0.05, upper = 0.95)
data |
numeric vector. The input data. Can also be a |
lower |
numeric. The probability for the lower quantile, defaults to '0.05'. |
upper |
numeric. The probability for the upper quantile, defaults to '0.95'. |
numeric vector. The output data.
The clip_fun
function is more convenient when used in rglactions
, as it allows specification of custom quantiles.
full_data = rnorm(50, 3, 1);
clipped = clip.data(full_data);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.