View source: R/missing_value_explore_plot.R
show_variable_missing_values | R Documentation |
show missing values for each variable
show_variable_missing_values(
object,
color_by,
order_by,
percentage = FALSE,
show_x_text = FALSE,
show_x_ticks = FALSE,
desc = FALSE
)
object |
(required) mass_dataset class object. |
color_by |
which column (in variable_info) is used to color variables |
order_by |
which column (in variable_info) is used to order variables |
percentage |
show MV percentage? TRUE or FALSE |
show_x_text |
show x axis text or not? TRUE or FALSE |
show_x_ticks |
show x ticks or not? TRUE or FALSE |
desc |
descend sample order or not. TRUE or FALSE. |
A ggplot2 object
Xiaotao Shen shenxt1990@outlook.com
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,
)
object
##show missing values plot
show_variable_missing_values(object)
show_variable_missing_values(object, color_by = "mz")
library(ggplot2)
show_variable_missing_values(object, color_by = "rt") +
ggplot2::scale_color_gradient(low = "skyblue", high = "red")
show_variable_missing_values(object, color_by = "mz",
order_by = "na")
show_variable_missing_values(object, color_by = "mz",
order_by = "na",
desc = TRUE, percentage = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.