# Load required R packages library(ggpubr) library(rstatix) # Data preparation df <- tibble::tribble( ~sample_type, ~expression, ~cancer_type, ~gene, "cancer", 25.8, "Lung", "Gene1", "cancer", 25.5, "Liver", "Gene1", "cancer", 22.4, "Liver", "Gene1", "cancer",
# Load required R packages library(ggpubr) library(rstatix) # Data preparation df <- tibble::tribble( ~sample_type, ~expression, ~cancer_type, ~gene, "cancer", 25.8, "Lung", "Gene1", "cancer", 25.5, "Liver", "Gene1", "cancer", 22.4, "Liver", "Gene1", "cancer",