gofer: gofer diagram

Description Usage Arguments

View source: R/gofer.R

Description

gofer diagram

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
gofer(
  data,
  data_age,
  ma_effect,
  ma_lower,
  ma_upper,
  dodge_width = 0.7,
  range_title = "TEMPERATURE",
  range_unit = "°C",
  range_results_subtitle = "temperature (°C)",
  colour_study_title = "#0080ff",
  colour_RoB_title = "#52ae32",
  colour_participants_title = "#ee7219",
  colour_mean_age = "coral",
  shape_mean_age = "circle",
  colour_median_age = "orange",
  shape_median_age = "diamond",
  colour_age_background = "white",
  colour_age_gridlines = "#FFE5CC",
  colour_measurements_title = "#930093",
  colour_sample_size = "#930093",
  colour_range = "#990099",
  colour_range_background = "white",
  colour_range_gridlines = "#FFCCFF",
  colour_measurements = "#930093",
  colour_results_title = "#002a60",
  colour_results = "#002a60",
  colour_results_background = "#BFD5E3",
  colour_results_gridlines = "white",
  age_legend_text_direction = "horizontal",
  age_legend_text_size = 8,
  age_legend_position = c(0.5, 0.02),
  measurements_logscale = FALSE,
  grade_rating
)

Arguments

data

include here descriptions of each argument we include in the function

data_age

dataframe in long format with four columns.

Column 1 (Study) should contain a character vector of study indentification in the form of 'First author, year'. Eg Conway,2019. Second column (age_type) is a grouping variable with either 'mean' or 'median. Third column (age_measure) is a grouping variable with either 'average', 'lower' or 'upper'. Fourth column (age) should be a numeric value for age.

range_title

measurement type used for range title

range_unit

unit used for range

range_results_subtitle

measurement type used for results

colour_study_title

fill colour of the study title

colour_RoB_title

fill colour of the risk of bias title

colour_participants_title

fill colour of the participants title

colour_mean_age

colour for mean age

shape_mean_age

middle data point shape for mean age

colour_median_age

colour for median age

shape_median_age

middle data point shape for median age

colour_age_background

background colour for age

colour_age_gridlines

gridline colour for age

colour_measurements_title

fill colour of the measurements title

colour_sample_size

colour of the sample size

colour_range

colour for range

colour_range_background

background colour for range

colour_range_gridlines

gridline colour for range

colour_measurements

colour of the paired measurements

colour_results_title

fill colour of the results title

colour_results

colour of the results

colour_results_background

background colour for results

colour_results_gridlines

gridline colour for results

age_legend_text_direction

either vertical or horizontal

age_legend_text_size

size of text for age legend

age_legend_position

position of legend within plot

measurements_logscale

TRUE or FALSE to use log scale transformation for measurements component

grade_rating

GRADE rating for meta-analysis. Either High, Moderate Low, Very Low


awconway/gofer documentation built on May 24, 2020, 3:19 p.m.