scale_color_nudz: Scale colors or fill for ggplot aesthetics

Description Usage Arguments Value Functions

View source: R/scales.R

Description

Scale colors or fill for ggplot aesthetics

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
scale_color_nudz(
  palette = "main",
  discrete = TRUE,
  reversed = FALSE,
  n_colors = c(),
  ...
)

scale_fill_nudz(
  palette = "main",
  discrete = TRUE,
  reversed = FALSE,
  n_colors = c(),
  ...
)

Arguments

palette

name of the palette to be used. See nudz_palette for all the available options

discrete

logical determining if a discreate (finite values) scale should be created or a continuous interpolation between colors of given palette

reversed

shoudl hte order of the colors be reversed

n_colors

selection of colors to be in the palette. See nudz_palette

...

other parameter passed to discrete_scale or to the ggplot2::scale_color_gradientn

Value

ggplot2::discrete_scale or scale_color_gradientn with selected colors

Functions


NUDZ/nudz.styles documentation built on Feb. 6, 2021, 12:24 a.m.