setFplot_dict: Sets/gets the dictionary used in 'fplot'

Description Usage Arguments Format Author(s) Examples

View source: R/miscfuns.R

Description

Sets/gets the default dictionary used to rename the axes/moderator variables in the functions of the package fplot. The dictionaries are used to relabel variables (usually towards a fancier, more explicit formatting) that can be useful not to explicitly use the arguments xlab/ylab when exporting graphs. By setting the dictionary with setFplot_dict, you can avoid providing the argument dict in fplot functions.

Usage

1
2
3

Arguments

dict

A named character vector. E.g. to change my variable named "us_md" and "state" to (resp.) "$ miilion" and "U.S. state", then use dict = c(us_md="$ million", state = "U.S. state").

Format

An object of class function of length 1.

Author(s)

Laurent Berge

Examples

1
2
3
data(airquality)
setFplot_dict(c(Ozone = "Ozone (ppb)"))
plot_distr(Ozone ~ Month, airquality, weight.fun = mean)

fplot documentation built on July 1, 2020, 6:30 p.m.