plotnine.facets.labelling.as_labeller

plotnine.facets.labelling.as_labeller(x, default=<function label_value>, multi_line=True)[source]

Coerse to labeller function

Parameters:
x : function | dict

Object to coerce

default : function | str

Default labeller. If it is a string, it should be the name of one the labelling functions provided by plotnine.

multi_line : bool

Whether to place each variable on a separate line

Returns:
out : function

Labelling function