proteinPlot: Create Line Plots

View source: R/proteinPlot.R

proteinPlotR Documentation

Create Line Plots

Description

This function creates a line plot for a proteins in dataFrame specified by protein

Usage

proteinPlot(
  dataFrame,
  protein,
  max_frac,
  grid = TRUE,
  titleLabel = "all",
  titleAlign = "left",
  ylabel = "Relative Protein Abundance",
  xlabel = "Fraction",
  legendLabel = "Condition",
  labelled = "Labeled",
  unlabelled = "Unlabeled",
  controlSample = "",
  textSize = 12,
  axisTextSize = 8
)

Arguments

dataFrame

data frame, contains columns: 'Protein Group Accessions' character; 'Protein Descriptions' character;bFraction integer; isLabel character ("TRUE"/"FALSE" values);'Precursor Area' double; scenario character

protein

character the protein of interest

max_frac

integer total number of fractions

grid

logical specifies presence/absence of gridline in the plot

titleLabel

character, if it is 'all' or 'GN', it specifies whether to show full label or just the gene name, if any other character is used, the value of titleLabel will be used as plot title

titleAlign

character one of the 'left', 'center'/'centre', 'right', specifies alignment of the title in plot

ylabel

character

xlabel

character

legendLabel

character

labelled

character label to be used for isLabel == TRUE

unlabelled

character label to be used for isLabel == FALSE

controlSample

character, either labelled or unlabelled, this setting will adjust plot coloring based on which sample is a control

textSize

numeric, size of text in the plot

axisTextSize

numeric, size of axis labels in the plot

Value

a plot

Examples


##Use example normalised proteins file
inputFile <- system.file("extData", "dataNormProts.txt", package = "ComPrAn")
#read file in and change structure of table to required format
forAnalysis <- protImportForAnalysis(inputFile)
##example plot:
protein <- "P52815"
max_frac <- 23
proteinPlot(forAnalysis, protein, max_frac)


Scavetta/complexomics documentation built on Oct. 1, 2022, 2:15 a.m.