Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

add_vis_dat_pal

(Internal) Add a specific palette to a visdat plot


Description

(Internal) Add a specific palette to a visdat plot

Usage

add_vis_dat_pal(vis_plot, palette)

Arguments

vis_plot

visdat plot created using vis_gather_, vis_extract_value and vis_create_

palette

character "default", "qual" or "cb_safe". "default" (the default) provides the stock ggplot scale for separating the colours. "qual" uses an experimental qualitative colour scheme for providing distinct colours for each Type. "cb_safe" is a set of colours that are appropriate for those with colourblindness. "qual" and "cb_safe" are drawn from http://colorbrewer2.org/.

Value

a visdat plot with a particular palette

Examples

## Not run: 
# see internal use inside vis_guess and vis_dat

## End(Not run)

visdat

Preliminary Visualisation of Data

v0.5.3
MIT + file LICENSE
Authors
Nicholas Tierney [aut, cre] (<https://orcid.org/0000-0003-1460-8722>), Sean Hughes [rev] (<https://orcid.org/0000-0002-9409-9405>, Sean Hughes reviewed the package for rOpenSci, see https://github.com/ropensci/onboarding/issues/87), Mara Averick [rev] (Mara Averick reviewed the package for rOpenSci, see https://github.com/ropensci/onboarding/issues/87), Stuart Lee [ctb], Earo Wang [ctb], Nic Crane [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.