View source: R/massqc_rsd_plot.R
massqc_cumulative_rsd_plot | R Documentation |
massqc_cumulative_rsd_plot
massqc_cumulative_rsd_plot(..., title, rsd_cutoff, color)
... |
one or more mass_dataset object |
title |
missing or same length (character vector) with ... |
rsd_cutoff |
numeric |
color |
when one mass_dataset, the line color |
ggplot2 plot.
Xiaotao Shen shenxt1990@163.com
library(massdataset)
library(ggplot2)
data("expression_data")
data("sample_info")
data("variable_info")
object =
create_mass_dataset(
expression_data = expression_data,
sample_info = sample_info,
variable_info = variable_info
)
massqc_cumulative_rsd_plot(object, rsd_cutoff = 30, color = "blue")
object1 =
object %>%
activate_mass_dataset(what = "sample_info") %>%
dplyr::filter(class == "QC")
object2 =
object %>%
activate_mass_dataset(what = "sample_info") %>%
dplyr::filter(class == "Subject")
massqc_cumulative_rsd_plot(object1, object2,
title = c("QC", "Subject")) +
ggsci::scale_color_lancet()
massqc_cumulative_rsd_plot(object1,
object2,
rsd_cutoff = 30,
title = c("QC", "Subject")) +
ggsci::scale_color_lancet()
massqc_cumulative_rsd_plot(
object1,
title = c("QC"),
color = "red",
rsd_cutoff = 30
)
massqc_cumulative_rsd_plot(
object2,
title = c("Subject"),
color = "blue",
rsd_cutoff = 50
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.