graphCurvesCombine: to generate a ggplot object (actually a list(ggplot object) )...

View source: R/graphicR.R

graphCurvesCombineR Documentation

to generate a ggplot object (actually a list(ggplot object) ) which combines the data of a number of tables

Description

to generate a ggplot object (actually a list(ggplot object) ) which combines the data of a number of tables

Usage

graphCurvesCombine(
  tables,
  x,
  y,
  lineWidth = 0.5,
  xLimits = NA,
  yPercentage = FALSE,
  combine = NA,
  colors = "black"
)

Arguments

tables

list of data.frames from which to generate the graphs Note: MUST be a list

x

character vector defining which column from the data.frames to use for the x-axis

y

character vector defining which column from the data.frames to use for the y-axis

lineWidth

defines the width of the lines in the graphs drawn from the x,y coordinates

xLimits

defines the range x coordinates c(minimum, maximum), all coordinates outsude this range are not drawn

yPercentage

defines if y-axis maximum should be set to 100 percent

combine

if NA then all tables are combined into one, otherwise it has to be a integer vector defining which tables from the 'tables' list to combine eg c(1,2,4)

colors

character vector describing the colors to be used. If a single color (default = "black") then all curves will be the same color, otherwise must be character vector of same length as the combine vector

Value

a list of ggplot objects


BenBruyneel/BBPersonalR documentation built on Aug. 23, 2024, 8:28 p.m.