Learn R Programming

IGM.MEA (version 0.3.4.1)

write.pdf: Write PDF

Description

Generates a PDF containing plots and p-values for each feature. P-values are generating using Mann Whitney and permutation tests. This function requires that you create a list of dataframes for a given feature type (e.g. spikes) using the aggregate.data() function

Usage

write.pdf(s, wt, np, features.list, type, output.dir)

Arguments

s
MEA data structure
wt
The treatment that will act as the wildtype/reference for the Mann Whitney and Permutation tests
np
Number of permutations to be performed
features.list
A list of dataframes containing data for a given feature
type
Type of features contained in features.list (e.g. spikes, ns, or bursts)
output.dir
Directory where output files will be generated

Value

A PDF file containing the plots and p-values.

Examples

Run this code
	data("S")
	#spike.features<-IGM.aggregate.feature.data(S, feat.type="spike" )
	#wt <- "untreated"
	#output.dir = getwd()
	#write.pdf(S, wt, np, spike.features, "spikes", output.dir)

Run the code above in your browser using DataLab