plot_overview_boxplot: Creates overview box plots.

View source: R/boxplot.R

plot_overview_boxplotR Documentation

Creates overview box plots.

Description

Creates overview box plots.

Usage

plot_overview_boxplot(
  df3,
  out_dir = ".",
  labels = "",
  log10_y = F,
  lvl.colors = NA,
  gradient_palette = "Spectral",
  legend.title = "Group",
  xlab = "variable",
  dot_color = "black",
  ylab = "value",
  font_size = 15,
  line_size = 1.3,
  save.to.file = T
)

Arguments

df3

A data frame in long format with 3 columns: order must be: 1) variable to group by (groups of boxes) = factor/character, 2) levels within each group (boxes) = factor/character, 3) values = numeric

out_dir

The output directory where the plot will be saved, default is current working directory.

labels

A character vector of at least length 1 that will be collapsed for file name/plot titles.

log10_y

Logical (TRUE/FALSE) indicating whether to log10-transform y-axis.

lvl.colors

A vector of colors to manually specify levels colors = box colors.

gradient_palette

RColorBrewer palette for variable colors if lvl.colors is NA. See RColorBrewer::display.brewer.all() for all options.

legend.title

Title for legend.

xlab

X axis label.

dot_color

A string indicating what color to make points, if NA, points will not be shown.

ylab

Y axis label.

font_size

The size of axis.title, axis.text, plot.title, legend.text and legend.title. The size of plot.subtitle is font_size / 2.

line_size

The thickness of axis lines.

save.to.file

If TRUE, save plot to file in out_dir. If FALSE, print to panel.

Value

Plot object if save.to.file is FALSE.

See Also

Other plotting: plot_corrplot(), plot_corrplotgg(), plot_discrete_barplot(), plot_heatmap(), plot_het_barplot(), plot_indiv_boxplot(), plot_indiv_corrscatt(), plot_indiv_paired(), plot_overview_corr_scatt(), plot_profile_barplot(), run_corrplot_analysis()


kazeera/hourglass documentation built on April 5, 2025, 7:18 a.m.