boxplot of split single feature score

sin_score_boxplot(data, features = NULL, ref.group, label, method = "t.test")

Arguments

data

matrix, features in row and samples in column

features

vector, feature names to plot

ref.group

character, reference group name

label

vector, group labels

method

character, statistical test to use, details in ggpubr::stat_compare_means()

Value

faceted ggplot object

Examples

data <- matrix(rnorm(100), 10, dimnames = list(1:10))
sin_score_boxplot(data, 1:2, ref.group = "A", label = rep(c("A", "B"), 5))
#> Warning: `add_rownames()` was deprecated in dplyr 1.0.0.
#>  Please use `tibble::rownames_to_column()` instead.
#>  The deprecated feature was likely used in the smartid package.
#>   Please report the issue at
#>   <https://github.com/DavisLaboratory/smartid/issues>.