get_variable_labels | R Documentation |
Some packages like expss provide mechanisms for providing longer labels to R objects.
These labels can be used when labeling plots and tables, for example, without requiring
long or awkward variable names. This is an experimental feature and currently only supports
expss or any other system that stores a label in the label
attribute of a vector.
get_variable_labels(...)
... |
passed to |
get_variable_labels()
is a synonym of labelled::var_label()
.
labelled::var_label()
, labelled::set_variable_labels()
KF <-
mosaicData::KidsFeet |>
set_variable_labels(
length = 'foot length (cm)',
width = 'foot width (cm)',
birthmonth = 'birth month',
birthyear = 'birth year',
biggerfoot = 'bigger foot',
domhand = 'dominant hand'
)
KF |>
gf_point(length ~ width, color = ~ domhand)
get_variable_labels(KF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.