plot_colors: [!] Vizualize colors

View source: R/plot_colors.R

plot_colorsR Documentation

[!] Vizualize colors

Description

A convenience function to Vizualize colors by either color name or color code.

Usage

plot_colors(
  col,
  text = as.character(col),
  Title = "Colors",
  cex = 1.2,
  as.legend = FALSE,
  ...
)

Arguments

col

A list of either color names or color codes.

text

Strings that describe each color.

cex

character expansion factor relative to current par("cex"). Used for text, and provides the default for pt.cex.

Value

A plot made with R package graphics.

Author(s)

Vilmantas Gegzna

See Also

Other spHelper plots: check_palette(), layer_spRangeMean(), plot_hyPalette(), plot_spCompare(), plot_spDiff(), plot_spDistribution(), qplot_confusion(), qplot_crosstab(), qplot_infoDim(), qplot_kAmp(), qplot_kSp(), qplot_prediction(), qplot_spRangeCenter(), qplot_spRangeMedian(), qplot_spStat(), qplot_spc(), rmExpr(), rm_stripes(), stat_chull()

Examples


plot_colors("#ee0000")
plot_colors("#ee0000", "RED color")
plot_colors(c("red","red4","orange2","green3","skyblue"))


GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.