Description Usage Arguments Details Value Author(s) See Also Examples
[!.] Add color palette to 'ggplot'
1 2 3 | gg_palette(obj, palette = NULL, name = NULL, ...)
palette2vec(palette)
|
obj |
|
palette |
Color palette. Eithar a named or unnamed vector with colors,
or data frame with variables |
name |
the main title of the legend. |
... |
further parameters to be passed to
|
gg_palette adds color palette to ggplot object. It wraps two
functions scale_color_manual and
scale_fill_manual.
palette2vec converts dataframe with variables $colors
and $labels to a named vector, were $labels are the names and
$colors are the values.The data frame is usually generated with function
hyGet_palette0.
Updated ggplot2 object of class ggplot.
Vilmantas Gegzna
Other spPlot functions for spectroscopy and hyperSpec:
facet_wl(),
ggLims(),
ggplot.hyperSpec(),
label_expr2text()
Other spPlot functions for ggplot2:
facet_wl(),
ggLims(),
ggplot.hyperSpec(),
nTick
1 | ## NO EXAMPLES YET ##
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.