View source: R/geom_lm_intercept_label.R
compute_group_interceptlabel | R Documentation |
compute a dataframe for plotting intercept coordinates label
compute_group_interceptlabel(data, scales, digits = 3)
data |
a data frame with columns x and y |
digits |
a positive integer |
a data frame with intercept coordinates of x and y and coordinate label
library(dplyr)
library(magrittr)
cars %>%
rename(x = speed) %>%
rename(y = dist) %>%
compute_group_interceptlabel()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.