output_figure_lines: Prints a lines of data as ggplot2 with potentially different...

Description Usage Arguments Value Author(s) See Also

View source: R/dexr_output_figure_lines.R

Description

Prints a lines of data as ggplot2 with potentially different colour, linetype, and potentially as facet plot. Uses ticks as X variable if present, runid otherwise.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
output_figure_lines(
  dexpa = dexpa,
  data = data,
  x_column = NULL,
  y_column,
  title = NULL,
  colour_column = NULL,
  colour_legendtitle = colour_column,
  colour_legenditemnames = NULL,
  linetype_column = NULL,
  linetype_legendtitle = linetype_column,
  linetype_legenditemnames = NULL,
  facet_column = NULL,
  facet_ncol = 2,
  filename = paste(dexpa$fig$filenameprefix, gsub(" ", "_", title),
    shbasic::shbasic_condenseRunids(data[, "id"]), dexpa$fig$filenamepostfix, sep = "_"),
  alpha = dexpa$fig$alpha,
  showsd = FALSE,
  ggplotaddons = NULL,
  returnplot = FALSE
)

Arguments

dexpa

parameter object

data

data.frame or list that is rbinded to a data.frame

x_column

column name for x data

y_column

column name for y data

title

figure title

colour_column

column used to define colours

colour_legendtitle

title for colour legend

colour_legenditemnames

vector of names for colour legend items

linetype_column

column used to define linetypes

linetype_legendtitle

title for linetype legend

linetype_legenditemnames

vector of names for linetype legend items

facet_column

column used to define facets

facet_ncol

number of columns of facet wrap

filename

without extension

alpha

transparency

showsd

if TRUE line shows mean and ribbons standard deviation (requires multiple data points per group)

ggplotaddons

vector of ggplot objects to add

returnplot

if true the ggplot object is returned

Value

ggplot2 line visualisation

Author(s)

Sascha Holzhauer

See Also

output_figure_energy_requested_comp_sumByLoadGenByStartT


UniK-INES/dexR documentation built on June 30, 2021, 11:05 p.m.