get_plot_sample_ids | R Documentation |
Get the sample IDs from a prepared plot. Useful if renaming in the plot legend.
Obtenez les ID d’échantillon à partir d’un tracé préparé. Utile si vous renommez dans la légende de le tracé
get_plot_sample_ids(ftir_spectra_plot)
ftir_spectra_plot |
A plot generated by [plot_ftir()] or [plot_ftir_stacked()]. Un tracé généré par [plot_ftir()] ou [plot_ftir_stacked()]. |
A vector of factors corresponding to the sample IDs in the plot.
unvecteur de facteurs correspondant aux ID d'échantillon dans le tracé
[rename_plot_sample_ids()]
if (requireNamespace("ggplot2", quietly = TRUE)) {
# Prepare a plot
p <- plot_ftir(biodiesel)
# Get the Sample IDs
get_plot_sample_ids <- (p)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.