label_fun | R Documentation |
Adds labels to a plot using one of geom_label
, geom_text
, geom_label_repel
or geom_text_repel
.
label_fun(data, geom = c("label", "text", "label_repel", "text_repel"), vars)
data |
data frame; data set to use for the label layer. Must contain a variable |
geom |
character; which geom to use for labelling. |
vars |
character; vector of names of variables to ass to the |
Gavin L. Simpson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.