olink_pal: Olink color panel for plotting

View source: R/Olink_color.R

olink_palR Documentation

Olink color panel for plotting

Description

Olink color panel for plotting

Usage

olink_pal(alpha = 1, coloroption = NULL)

Arguments

alpha

transparency (optional)

coloroption

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

Value

A character vector of palette hex codes for colors

Examples


library(scales)

#Color matrices
show_col(olink_pal()(10), labels = FALSE)
show_col(olink_pal(coloroption = c('lightblue', 'green'))(2), labels = FALSE)

#Contour plot
filled.contour(volcano, color.palette = olink_pal(), asp = 1)
filled.contour(volcano, color.palette = hue_pal(), asp = 1)



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