ExpressionGradient: The ggplot2 scale gradient from ExpressionPalette.

View source: R/utils.R

ExpressionGradientR Documentation

The ggplot2 scale gradient from ExpressionPalette.

Description

The ggplot2 scale gradient from ExpressionPalette.

Usage

ExpressionGradient(...)

Arguments

...

Arguments passed to ggplot2::scale_color_gradientn()

Examples

library(EmbedSOM)
library(ggplot2)

# simulate a simple dataset
e <- cbind(rnorm(10000),rnorm(10000))

data <- data.frame(Val=log(1+e[,1]^2+e[,2]^2))
PlotGG(e, data=data) +
  geom_point(aes_string(color="Val"), alpha=.5) +
  ExpressionGradient(guide=FALSE)

EmbedSOM documentation built on July 5, 2022, 5:14 p.m.