plotter: Plotting the differences

Description Usage Arguments Value Examples

View source: R/plotter.R

Description

A function that takes in a list of dataframes and convert the numerical number to plot form for easier interpretation, only use this function when there is a reference sequence, if the function used is comparison in pair, plotting them in this way is meaning less

Usage

1
plotter(dataframes)

Arguments

dataframes

A list that contains all id, sequences, differences.

Value

Returns a histogram.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Examples 1:
# plot the difference
a <- list()
x <- data.frame(id = c("1","2","3","4","5","6","7","8"),
                sequences = c("a", "b", "c", "d", "e", "f", "g", "h"),
                difference = c(1,5,3,4,5,6,6,32))
a <- x
plotter(a)

# Examples 2:
# connect this function to seqCompareAsInput.R

library(gscVisualizer)
filePath <- system.file("extdata", "test.fa", package = "gscVisualizer")
a <- seqCompareAsFile("RNA", "noncoding", filePath)
plotter(a)

Deemolotus/gscVisualizer documentation built on Dec. 31, 2020, 11:55 a.m.