Skip to contents

Plot compact PVD tmp function using list of extract_figs_from_pickle

Usage

plot_compact_pvd(
  figs,
  tile_height = 1,
  y_text_size = 9,
  facet_label_prefix = names(figs),
  legend.position = "none",
  scale_colors = c("red", "blue", "magenta", "darkgreen", "purple4"),
  rel_heights = c(1, 0.1),
  ncol_legend = 2,
  nrow_colors = 2,
  guide_rel_widths = c(0.7, 0.3),
  legend_text_size = grid::unit(8, "pt"),
  show_group_color_legend = TRUE,
  ...
)

Arguments

figs

todo

tile_height

todo

y_text_size

todo

facet_label_prefix

todo

legend.position

todo

scale_colors

todo

rel_heights

(optional) Numerical vector of relative rows heights. Works just as rel_widths does, but for rows rather than columns.

ncol_legend

how many columns to use for legend

nrow_colors

now many rows to use for color guide

guide_rel_widths

relative widths of guides

legend_text_size

grid::unit: legend text size

show_group_color_legend

logical: whether to show group col legend

...

Arguments passed on to compact_pvd_data_prep

biomarker_order

a character vector specifying the order of biomarkers to use

biomarker_var

either "biomarker" or "biomarker_label"

Value

a ggplot2::ggplot

Examples

output_path <-
  fs::path_package("extdata/sim_data", package = "fxtas")

figs <- extract_figs_from_pickle(
  output_folder = output_path,
  n = 3
)

figs |> plot_compact_pvd(scale_colors = c("red", "blue", "purple4"))