APABox: APABox, APA RED Box plotting

Description Usage Arguments Value Author(s) Examples

View source: R/APAPlots.R

Description

APA RED Box plotting

Usage

1
2
	APABox (df, xlab = "APAreg", ylab = "RED",
						plot_title = NULL)	

Arguments

df

a dataframe of APAdiff output

xlab

lable of x-axis, default is 'APAreg'

ylab

lable of y-axis, default is 'RED'

plot_title

Main title of plot

Value

The function APABox return a Box plot.

Author(s)

Ruijia Wang

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
    library("TBX20BamSubset")
    library("Rsamtools")
    flsall = getBamFileList()
    extpath = system.file("extdata",
    "mm9_TBX20.APAout.RData", package="APAlyzer")
    load(extpath)
    sampleTable1 = data.frame(samplename = c(names(flsall)),
        condition = c(rep("NT",3),rep("KD",3)))
    sampleTable2 = data.frame(samplename = c("SRR316184","SRR316187"),
        condition = c("NT","KD"))
    ## 3'UTR APA plot
    test_3UTRmuti=APAdiff(sampleTable1,DFUTRraw,
    conKET='NT',trtKEY='KD',PAS='3UTR',CUTreads=0)
	UTR_APA_PLOTBOX=APABox(test_3UTRmuti, plot_title='3UTR APA')

    ## IPA plot
    test_IPAmuti=APAdiff(sampleTable1,IPA_OUTraw,
    conKET='NT',trtKEY='KD',PAS='IPA',CUTreads=0)
	IPA_PLOTBOX=APABox(test_IPAmuti, plot_title='IPA')

APAlyzer documentation built on Nov. 8, 2020, 4:54 p.m.