Labeller
Description
This function makes it easy to assign different labellers todifferent factors. The labeller can be a function or it can be anamed character vectors that will serve as a lookup table.
Buy Handheld Label Makers and get organsesd with Officeworks. Shop the range of label makers online and in store. Enjoy free delivery over $55. A labeller function to supply to facetgrid or facetwrap for the argument labeller. In case of functions, if the labeller has class labeller, it is directly applied on the data frame of labels. Otherwise, it is applied to the columns of the data frame of labels. - Custom Labels - Bridesmaid/Gift Boxes - Home Organisation - Cake Toppers - & More! Labeller is simple to use, but powerful enough to integrate with your process. Things such as sell by dates, bold labelling for food regulations, serial numbers, csv or excel file import and database lookup are all easy to set up. Everything is controlled from one easy to use Main Menu screen. No extras to purchase, just setup and start printing.
Usage
Arguments
Named arguments of the form variable = labeller
. Each labeller is passed to as_labeller()
and can be a lookup table, a function taking and returningcharacter vectors, or simply a labeller function.
Labeller for a whole margin (either the rows orthe columns). It is passed to as_labeller()
. When amargin-wide labeller is set, make sure you don't mention in...
any variable belonging to the margin.
Deprecated. All supplied labellers andon-labeller functions should be able to work with characterlabels.
Whether to display the labels of multiplefactors on separate lines. This is passed to the labellerfunction.
Default labeller for variables not specified. Alsoused with lookup tables or non-labeller functions.
Value
A labeller function to supply to facet_grid()
or facet_wrap()
for the argument labeller
.
Details
In case of functions, if the labeller has class labeller
, itis directly applied on the data frame of labels. Otherwise, it isapplied to the columns of the data frame of labels. The data frameis then processed with the function specified in the.default
argument. This is intended to be used withfunctions taking a character vector such asHmisc::capitalize()
.
See Also
as_labeller()
, labellers
Examples
Label Maker Machine
R/labeller.r
This function makes it easy to assign different labellers todifferent factors. The labeller can be a function or it can be anamed character vectors that will serve as a lookup table.
Arguments
... | Named arguments of the form |
---|---|
.rows, .cols | Labeller for a whole margin (either the rows orthe columns). It is passed to |
keep.as.numeric | Deprecated. All supplied labellers andon-labeller functions should be able to work with characterlabels. |
.multi_line | Whether to display the labels of multiplefactors on separate lines. This is passed to the labellerfunction. |
.default | Default labeller for variables not specified. Alsoused with lookup tables or non-labeller functions. |
Value
A labeller function to supply to facet_grid()
or facet_wrap()
for the argument labeller
.
Details
In case of functions, if the labeller has class labeller
, itis directly applied on the data frame of labels. Otherwise, it isapplied to the columns of the data frame of labels. The data frameis then processed with the function specified in the.default
argument. This is intended to be used withfunctions taking a character vector such asHmisc::capitalize()
.