# NOT RUN {
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
)
# }
Run the code above in your browser using DataLab