View source: R/plot_profiles.R
Creates common figures from the calculated distance between sample and source profiles. Possible plots include a boxplot of the sum of the distance metric across all sources and proportional concentration profile figures comparing an individual sample to a source.
1 2 3 | plot_profiles(profile_dat, plot_type = "boxplot", sources_plot = NA,
samples_plot = "all", sample_column = "sample_id",
source_abbreviation = FALSE)
|
profile_dat |
The output of 'pah_profiler' which includes the proportional concentration profiles from the samples and sources, as well the sum of the distance metric for each sample/source combination. These are combined in a list. |
plot_type |
The desired plot type. This can either be a boxplot ('boxplot') of all distance measures by source, or various profile ('profile') plots. |
sources_plot |
If 'plot_type' = 'profile', include a vector of abbreviated sources that you want to include in a profile plot to compare to samples. Set equal to "all" to include paneled plots of all source profiles. |
samples_plot |
If 'plot_type' = 'profile', a unique sample ID to use to plot against source profiles. Can either be a single unique ID or "all" to indicate taking the mean and standard deviation of all samples. |
sample_column |
Column that contains unique sample IDs. |
source_abbreviation |
logical, whether source abbreviations should be used when plot_type = 'distance_boxplot'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.