plotTimeSeries: Plotting Time Series Data

View source: R/plot_functions.R

plotTimeSeriesR Documentation

Plotting Time Series Data

Description

Uses the result of the generateTimeSeriesData function as inout and generates a visualisation of the clonal contributions over a number of given time points (similar to a stacked barplot).

Usage

plotTimeSeries(
  ov_dat,
  colr = NULL,
  tp = NULL,
  x_label = "time",
  y_label = "contribution"
)

Arguments

ov_dat

a numeric matrix consisting of all time points as columns and all barcode sequences as rows and the corresponding read counts as numerical values (see function generateTimeSeriesData()).

colr

a vector of character strings identifying a certain color palette.

tp

a numeric vector containing the time points of measurement (in case of unequally distributed time points).

x_label

a character string providing the x-axis label.

y_label

a character string providing the y-axis label.

Value

a ggplot2 object.

Examples

ov_dat <- matrix(round(runif(1:100, min = 0, max = 1000)), ncol = 5)
rownames(ov_dat) <- paste("barcode", 1:20)
plotTimeSeries(ov_dat)

genBaRcode documentation built on March 31, 2023, 11:02 p.m.