olink_fill_gradient: Olink fill scale for continuous ggplots

View source: R/Olink_color.R

olink_fill_gradientR Documentation

Olink fill scale for continuous ggplots

Description

Olink fill scale for continuous ggplots

Usage

olink_fill_gradient(..., alpha = 1, coloroption = NULL)

Arguments

...

Optional. Additional arguments to pass to ggplot2::scale_fill_gradientn()

alpha

transparency (optional)

coloroption

string, one or more of the following: c('red', 'orange', 'yellow', 'green', 'teal', 'turqoise', 'lightblue', 'darkblue', 'purple', 'pink')

Value

No return value, called for side effects

Examples


library(ggplot2)

dsub <- subset(diamonds, x > 5 & x < 6 & y > 5 & y < 6)
dsub$diff <- with(dsub, sqrt(abs(x-y))* sign(x-y))
ggplot(dsub, aes(x, y, colour=diff)) +
geom_point() +
 theme_bw() +
 olink_fill_gradient()


OlinkAnalyze documentation built on Nov. 4, 2023, 1:07 a.m.