View source: R/annotated_spectrum_plot.R
annotated_spectrum_plot | R Documentation |
Generates an experimental spectrum with calculated peptide fragments. Plot can be interactive or not.
annotated_spectrum_plot(
PeakData,
MatchedPeaks = NULL,
IncludeIsotopes = TRUE,
IncludeLabels = TRUE,
LabelSize = 4,
LabelDistance = 0.5,
Interactive = FALSE
)
PeakData |
Object of the peak_data class from get_peak_data. |
MatchedPeaks |
Object of the matched_peaks class from get_matched_peaks. Default is NULL. |
IncludeIsotopes |
A logical to indicate whether isotopes should be included in the plot. Default is TRUE. |
IncludeLabels |
A logical to indicate whether labels should be included in the plot. Default is TRUE. |
LabelSize |
A numeric indicating the size of the label in ggplot dimensions. Default is 4. |
LabelDistance |
A numeric indicating the distance from each peak the label should be. Default is 0.5 M/Z. |
Interactive |
A logical to determine whether the plot should be interactive or not. For plots with more than 10,000 peaks, it is advantageous to set to FALSE. Default is TRUE. |
## Not run:
# Test bottom up data
BU_Peak <- get_peak_data(ScanMetadata = BU_ScanMetadata, ScanNumber = 31728)
BU_Match <- get_matched_peaks(ScanMetadata = BU_ScanMetadata, PeakData = BU_Peak)
annotated_spectrum_plot(PeakData = BU_Peak, Interactive = TRUE)
annotated_spectrum_plot(PeakData = BU_Peak, MatchedPeaks = BU_Match, IncludeLabels = FALSE, Interactive = TRUE)
annotated_spectrum_plot(PeakData = BU_Peak, MatchedPeaks = BU_Match, IncludeLabels = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.