Skip to contents

The default theme settings for the subplots of a 2x2 quadrant plot. In order to display correctly, the important properties of the theme are:

  1. The background are set to transparant elements.

  2. The main plot titles and legends are removed. (Axis labels are kept.)

  3. The aspect ratio is set to 1.00.

  4. Margins are adjusted to set the plot within the background squares.

Usage

default_inner_theme(inner_margin = 20)

Arguments

inner_margin

integer, optional Controls the padding between the inner subplots.

Value

A theme object with the settings for the subplots of a 2x2 quadrant plot.

Examples

plots <- ThinkingGrid:::create_test_2x2_plots()
p1 <- plots[[1]]
p2 <- plots[[2]]
p3 <- plots[[3]]
p4 <- plots[[4]]

# Here we can customize the theme.
itheme <- default_inner_theme(inner_margin = 10)

# This is the usual syntax.
thinkgrid_quadrant_plot(p1, p2, p3, p4, inner_theme = itheme)