reduce_ggplot_object_size: Reduce the memory footprint of ggplot objects

View source: R/util_generic.R

reduce_ggplot_object_sizeR Documentation

Reduce the memory footprint of ggplot objects

Description

it seems like ggplot objects retain copies of source data, which can result in out of control RAM and RData file sizes. For example, Cscore histograms from 200 Spectronaut files (i.e. 200 basic histograms of ~50k peptides) will results in 100+ GB RData files

Usage

reduce_ggplot_object_size(x)

Arguments

x

a ggplot object, or a (nested) list of ggplot objects

Details

Reference; https://stackoverflow.com/questions/75594274/why-are-my-ggplot-objects-getting-so-large-in-size Reference; https://github.com/tidyverse/ggplot2/issues/4056#issue-636077598


ftwkoopmans/msdap documentation built on March 5, 2025, 12:15 a.m.