Skip to contents

Generic function to set a plot theme for different types of plot objects.

Usage

set_theme(x, ...)

# S3 method for class 'ggplot'
set_theme(x, template = "inrae", ...)

Arguments

x

A plot object (e.g., a ggplot object).

...

Additional arguments passed to the theme function.

template

character The name of the theme template to apply.

Value

A plot object with the specified theme applied.