balance.combine: Combine Two Sub-Plots

Description Usage Arguments Author(s) Examples

View source: R/balance.plot.R

Description

This function combines the "partition" sub-plot with the "distribution" sub-plot, preserving scale.

Usage

1
balance.combine(balance.partition, balance.distribution, size = "first")

Arguments

balance.partition

A ggplot object. The "partition" sub-plot.

balance.distribution

A ggplot object. The "distribution" sub-plot.

size

A string. Toggles whether to size final figure based on "first" (partition) or "last" (distribution) figure provided.

Author(s)

Thom Quinn

Examples

1
2
3
4
5
6
7
8
library(balance)
data(iris)
x <- iris[,1:4]
sbp <- sbp.fromPBA(x)
res <- balance(x, sbp)
custom1 <- res[[1]] + ggplot2::theme_dark()
custom2 <- res[[2]] + ggplot2::theme_dark()
balance.combine(custom1, custom2)

tpq/balance documentation built on Aug. 6, 2021, 10:45 p.m.