visdat (version 0.5.3)

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)

Value

a visdat plot with a particular 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/.

Examples

Run this code

if (FALSE) {
# see internal use inside vis_guess and vis_dat
}

Run the code above in your browser using DataLab