plotCG: Plot A protein Composition Graph

Description Usage Arguments Value References Examples

View source: R/plotCG.R

Description

A function that plots the composition of protein sequence given one attribute at a time. Attributes include hydrophobicity, van der Waals volume, polarity, polarizability, and desolvation

Usage

1
plotCG(file = "proSeq", type = 1, circular_plot = TRUE)

Arguments

file

input csv file containing the protein name and sequence

type

integer, indicates one attribute for plotting the composition different Attributes are listed below: 1: hydrophobicity 2: van der Waals volume 3: polarity 4: polarizability 5: desolvation

Value

This function returns a composition graph given the attribute type.

References

The R Graph Gallery -Circular barplot with groups. (2018).Retrieved December 1, 2019, from https://www.r-graph-gallery.com/297-circular-barplot-with-groups.html

Examples

1
2
3
# defaul value is to show hydrophobicity composition in a circular plot
p <- plotCG(file = "proSeq",type= 1, circular_plot = TRUE )
p #call p to see the plot

dxjasmine/Rppsc documentation built on Dec. 8, 2019, 11:40 a.m.