update_themes: Create xpose theme

Description Usage Arguments Examples

View source: R/update_themes.R

Description

Create an xpose theme. This function will update the theme of an xpdb object. All plots generated with this xpdb will automatically use the defined xpose (xp_theme) and ggplot2 (gg_theme) themes.

Usage

1
update_themes(xpdb = NULL, gg_theme = NULL, xp_theme = NULL, quiet)

Arguments

xpdb

An xpose_data object generated with xpose_data.

gg_theme

A ggplot2 theme object (e.g. theme_classic).

xp_theme

An xpose theme or vector of modifications to the xpose theme (e.g. c(point_color = 'red', line_linetype = 'dashed')).

quiet

Logical, if FALSE messages are printed to the console.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Before default theme
dv_vs_ipred(xpdb_ex_pk, facets = 'SEX')

# Updating the gg_theme and xp_theme
xpdb_ex_pk %>% 
  update_themes(gg_theme = theme_bw(),
                xp_theme = list(point_color = 'blue',
                                line_color  = 'blue')) %>% 
  dv_vs_ipred(facets = 'SEX')
  

UUPharmacometrics/xpose documentation built on Aug. 17, 2018, 4:29 a.m.