ttheme_awesome: Define theme for awesome table plot.

Description Usage Arguments Value Author(s)

View source: R/ttheme_awesome.R

Description

Define theme for awesome table plot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ttheme_awesome(
  base_size = 8,
  base_colour = "black",
  base_family = "",
  core_size = 10,
  scale_breaks = 10,
  scale_ratio = 0.25,
  color_palette = "black",
  color_breaks = NULL,
  rep_mode = "col",
  parse = FALSE,
  size_unit = "mm",
  padding = c(0.3, 0.3),
  show_legend = TRUE,
  legend_position = NULL,
  legend_layout = NULL,
  legend_x = NULL,
  legend_y = NULL,
  legend_width = NULL,
  legend_height = NULL,
  legend_scale = 1.5,
  legend_title_fontsize = 12,
  legend_labels_fontsize = 10,
  legend_labels_pad = -1.2,
  ...
)

Arguments

base_size

default font size

base_colour

default font colour

base_family

default font family

core_size

cell size for core background grobs

scale_breaks

number of size categories for core foreground grobs or numeric vector of bin breaks

scale_ratio

ratio of minimum to maximum core foreground grobs sizes

color_palette

color palette for core foreground grobs

color_breaks

bin breaks for color palette for core foreground grobs

rep_mode

'col' or 'row'. Used when recycling fg_params or bg_params to make a matrix of params.

parse

logical, default behaviour for parsing text as plotmath

size_unit

character vector defining the unit used for sizes. See grid::unit for all possible specifications.

padding

length-2 vector specifying the horizontal and vertical padding of text within each cell

show_legend

(optional) set to FALSE to not draw any legend.

legend_position

(optional) choose between 'top_left', 'top_center' and 'top_right'.

legend_layout

(optional) Only 'columnwise' is supported for now.

legend_x

(optional) x position in 'npc' units of the left bottom corner of the viewport defining the scale legend. If NULL, the function will try to set it automatically using legend_position.

legend_y

(optional) y position in 'npc' units of the left bottom corner of the viewport defining the scale legend. If NULL, the function will try to set it automatically.

legend_width

(optional) width in 'npc' units of the viewport(s) defining legend(s). If NULL, the function will try to set it automatically.

legend_height

(optional) height in 'npc' units of the viewport(s) defining legend(s). If NULL, the function will try to set it automatically.

legend_scale

(optional) Scale factor that defines the size of the legend colorbar cells relatively to the main plot cells.

legend_title_fontsize

(optional) if NULL, font size is set to theme$colhead$fontsize.

legend_labels_fontsize

(optional) if NULL, font size is set to theme$colhead$fontsize.

legend_labels_pad

(optional) padding between the legend labels.

...

extra parameters added to the theme list

Value

a list of lists with each sublist defining parameters for the corresponding part of the plot. The parts are

Author(s)

Yoann Pradat


tableExtra documentation built on Oct. 29, 2021, 5:06 p.m.