Plot Tails
plot_tails.Rd
This function plots the tails probabilities of a marginal distribution.
Arguments
- data
data.table
A data.table containing the data to be plotted.- var
character
The variable to be plotted. Must be a column ofdata
.- xmin
numeric
The minimum value of the variable to be plotted. Passed to kde1d. Default isNA
indicating no lower limit.- scale_d
numeric
The scaling factor for the density plot between continuous and relative axis. Default is3
. Regulate the factor, if continuous density estimates and relative frequency are too distinct on the y-axis. Only used for zero inflated variables.- mult
numeric
Binwidth multiplier. Passed to kde1d. Default is 1 indicating no multiplication.- length_out
numeric
The length of the sequence to be used for the density plot. Default is1e4
.