The 'ggplot2' package is excellent and flexible for elegant data visualization in R. However the default generated plots requires some formatting before we can send them for publication. Furthermore, to customize a 'ggplot', the syntax is opaque and this raises the level of difficulty for researchers with no advanced R programming skills. 'ggpubr' provides some easy-to-use functions for creating and customizing 'ggplot2'- based publication ready plots.
logical indicating whether to parse or not aesthetics variables names.
Default is TRUE
. For example, if you want ggpubr
to handle non-standard column names, like A-A
,
without parsing, then set this option to FALSE
using options(ggpubr.parse_aes = FALSE)
.
A function that creates an appropriate null device.
These include: cowplot::pdf_null_device
,
cowplot::png_null_device
,
cowplot::cairo_null_device
and
cowplot::agg_null_device
. Default is
cowplot::pdf_null_device
. This is used in
function like as_ggplot()
, which needs to open a graphics
device to render ggplot objects into grid graphics objects. This function is
used to open null device for avoiding the display of unnecessary blank page
when calling ggarrange()
or as_ggplot()
Useful links: