Learn R Programming

GOsummaries (version 2.6.0)

customize: Customization function for panel

Description

This function is supposed to make small changes in the panel function appearance like changing color scheme for example. It has to match with the output of the corresponding panel function. Check examples in plot.gosummaries to see how to write one yourself.

Usage

customize(p, par)

Arguments

p
a ggplot2 plot object
par
parameters object like in panel_boxplot

Value

a ggplot2 plot object with added customizations

Examples

Run this code
## Not run: 
# data(gs_limma_exp)
# 
# cust = function(p, par){
#     p = p + scale_fill_brewer(par$classes, type = "qual", palette = 1)
#     return(p)
# }
# 
# plot(gs_limma_exp, classes = "Tissue", panel_plot = panel_boxplot, 
#         panel_customize = cust, fontsize = 8) 
# ## End(Not run) 

Run the code above in your browser using DataLab