proteinPlot | R Documentation |
This function creates a line plot for a proteins in dataFrame specified by protein
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 )
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 |
a plot
##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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.