Default plot method for emetaFilt
object of class emeta_filter
a numeric value specifying the minimum value (inclusive) that a peak should have for the specified 'e_meta' column
a numeric value specifying the maximum value (inclusive) that a peak should have for the specified 'e_meta' column
a vector of character values specifying the level(s) of the specified 'e_meta' column which should be retained
logical value specifying if peaks with NA values for the specified 'e_meta' column should be removed. Default value is TRUE
plot title
x-axis label, default is the column of emeta used to construct x
y-axis label
other arguments
plotly
plot object
if (FALSE) {
# Emeta filter based on the "OtoC_ratio" column (numeric variable)
filter_object1 = emeta_filter(exampleProcessedPeakData, cname = "OtoC_ratio")
# Plots the distribution of OtoC_ratio
plot(filter_object1)
# Demonstrates retaining values between 0.5 and 1
plot(filter_object1, min_val = 0.5, max_val = 1)
# Emeta filter based on the "MolForm" column (categorical variable)
filter_object2 = emeta_filter(exampleProcessedPeakData, cname = "MolForm")
# Only non-NAs retained
plot(filter_object2)
# Peaks matching "C10" retained
plot(filter_object2, cats=grep("C10", filter_object2$emeta_value, value = TRUE))
}