ggplot_tnp {normfluodbf}R Documentation

Title: A Visualization function.

Description

A visualization function using ggplot2.

Usage

ggplot_tnp(df, x, y_list, xlim, ylim, xlab = NULL, ylab = NULL, title = NULL)

Arguments

df

A clean data frame with attributes or tuples containing a mixture of samples.

x

The X-variable often the cycle number OR time.

y_list

A character vector of samples that need to be plotted. Often of the format TNP (Test, Negative, Positive).

xlim

The X-variable scale.

ylim

The Y-variable scale.

xlab

The X axis label. Takes a string.

ylab

The Y-axis label. Takes a string.

title

Graph title. Takes a string.

Value

A nice visual of the clean and normalized data frame.

Author(s)

Tingwei Adeck

Examples

fpath <- system.file("extdata", "dat_1.dat", package = "normfluodbf", mustWork = TRUE)
dat_df <- normfluodat(fpath,3,40, rows_used = c('A','B','C'), norm_scale = 'one')
yvars <- c("A1","B1","C1")
xvar <- c("Cycle_Number", "Time")
xl <- c(0,40)
yl <- c(0,1)
ggplot_tnp(dat_df,xvar,yvars,xl,yl,xlab='Cycle_Number',ylab='Normalized Fluorescence',title='LFA')

[Package normfluodbf version 1.5.2 Index]