plot_spec_group: Plot spectra from dataframe by group

Description Usage Arguments Value

Description

This function will help you quick plot the spectra if you have a data.frame that could be used for plot_spec_from_df and have a group parameter which indicates the different groups for spectra in your x.

Usage

1
plot_spec_group(x, group, palette = RdYlBu, facet = TRUE, group_num = TRUE)

Arguments

x

The input matrix with colnames could be converted to numeric values.

group

The vector indicate the group-belongings for x

palette

Color palette function. The default is RdYlBu

facet

Whether to plot by facet_wrap. The default is TRUE.

group_num

Whether to add sample numbers of each group in strip.text. Also support character as the input.

Value

A ggplot list.


bishun945/FCMm documentation built on Oct. 15, 2021, 6:43 p.m.