infobar: Create infoplot with bars

Description Usage Arguments

View source: R/barinfo.R

Description

Create infoplot with bars

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
27
28
29
30
31
32
33
34
35
36
37
38
infobar(
  headline_main_text_left,
  headline_main_text_right,
  headline_1_text_left = "received",
  headline_1_text_right = "received",
  headline_2_text_left = "",
  headline_2_text_right = "",
  n,
  outcome_texts,
  cases_right,
  cases_left,
  center_distance = 0.01,
  fontsize = 1,
  description_size = 4,
  bar_size = 2.5,
  headline_main_size = 3,
  headline_main_fontface = "bold",
  col_left = rgb(0.4, 0.4, 0.4),
  col_right = "#D17A00",
  headline1_fontface = "plain",
  headline2_fontface = "bold",
  headline_main_height = 0.7,
  headline1_height = 0.37,
  headline2_height = 0.2,
  headline_size = 1.5,
  height_first = 0.8,
  distance_bar = 0.4,
  bar_height = 0.4,
  case_distance = 1,
  case_size = 1.8,
  outcome_col = rgb(0.3, 0.3, 0.3),
  outcome_size = 1.5,
  outcome_fontface = "bold",
  outcome_cases_fontface = "bold",
  big.mark = ",",
  decimal.mark = ".",
  plot_width = 22
)

Arguments

headline_main_text_left

main headline text left

headline_main_text_right

main headline text right

headline_1_text_left

top subheadline text left

headline_1_text_right

top subheadline text right

headline_2_text_left

bottom subheadline text left

headline_2_text_right

bottom subheadline text right

n

the length of the empty bars

outcome_texts

the headlines of the outcomes (describing the invidual bars)

cases_right

number of cases right

cases_left

number of cases left

center_distance

vertical white space size

fontsize

overall fontsize

description_size

space used for the main and subheadline

bar_size

height of bar size and associated outcome texts

headline_main_size

overall sample size

headline_main_fontface

either "plain", "bold", "italic", or "bold.italic"

col_left

colour left column

col_right

colour right column

headline2_fontface

either "plain", "bold", "italic", or "bold.italic"

headline_main_height

main headline height

headline1_height

top subheadline space height

headline2_height

bottom subheadline space height

headline_size

subheadline fontsize

distance_bar

distance outcome text to bars. Values between 0.4 to 0.6 looks best in most cases

bar_height

height of the bars

case_distance

distance "n cases" text to bar

case_size

size of "n cases" text

outcome_col

outcome text color

outcome_size

font size outcomes

outcome_fontface

either "plain", "bold", "italic", or "bold.italic"

outcome_cases_fontface

either "plain", "bold", "italic", or "bold.italic"

big.mark

symbol used for big marks (thousands)

decimal.mark

decimal symbol

plot_width

plot width


RobertEmprechtinger/r-infograph documentation built on Dec. 18, 2021, 10:54 a.m.