customize: Customization function for panel

Description Usage Arguments Value Author(s) Examples

View source: R/GOsummaries.R

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

1

Arguments

p

a ggplot2 plot object

par

parameters object like in panel_boxplot

Value

a ggplot2 plot object with added customizations

Author(s)

Raivo Kolde <raivo.kolde@eesti.ee>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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) 

GOsummaries documentation built on Nov. 8, 2020, 6:50 p.m.