Custom function for adding labeled lines for x-axis variable.
Helper function for adding centrality parameter value and/or a
test value for the continuous, numeric x
-axis variable.
histo_labeller( plot, x, type = "parametric", tr = 0.2, k = 2L, centrality.line.args = list(color = "blue", size = 1), ... )
plot |
A |
x |
A numeric variable from the dataframe |
type |
A character specifying the type of statistical approach. Four possible options:
Corresponding abbreviations are also accepted: |
tr |
Trim level for the mean when carrying out |
k |
Number of digits after decimal point (should be an integer)
(Default: |
centrality.line.args |
A list of additional aesthetic arguments to be
passed to the |
... |
Currently ignored. |
library(ggplot2) # creating a plot; lines and labels will be superposed on this plot p <- ggplot(mtcars, aes(wt, mpg)) + geom_point() # adding labels ggstatsplot:::histo_labeller( plot = p, x = mtcars$wt )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.