heatScatterColor: Color values for x and y data using code from...

Description Usage Arguments Examples

View source: R/heatScatterColor.R

Description

This takes in x, y, and returns color values based on a palette defined using the heatscatter() function from the "LSD" library. Useful for adapting heatscatter() like behavior to plotting in ggplot2.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
heatScatterColor(
  x,
  y,
  coldiscrete = NULL,
  nrcol = 30,
  grid = 100,
  colpal = "heat",
  simulate = FALSE,
  daltonize = FALSE,
  cvd = "p",
  alpha = NULL,
  rev = FALSE,
  only = "none",
  nlevels = 10,
  greyscale = FALSE,
  log = "",
  ...
)

Arguments

x

Values of x

y

Values of y

colpal

Color palette, options from LSD::disco(). Defaults to "heat".

...

All other options the same as LSD::heatscatter()

Examples

1
heatScatterColor(x,y,coldiscrete,colpal="oranges")

hodgeslab/hodgeslabR documentation built on Aug. 6, 2021, 5:10 a.m.