# make some decorated data
library(magrittr)
x <- data.frame(x = 1, y = 1, z = factor('a'))
x %<>% decorate('
x: [ guide: mm, desc: this, label: foo ]
"y": [ guide: bar, desc: other ]
')
# retrieve decorations: label not first!
decorations(x)
# sort label first by default
decorations(canonical(x))
# equivalent invocation
canonical(decorations(x))
Run the code above in your browser using DataLab