olink_fill_gradient {OlinkAnalyze} | R 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()
[Package OlinkAnalyze version 3.8.2 Index]