Learn R Programming

Bios2cor (version 1.2)

create_boxplot: Creates boxplot file

Description

Given correlation objects, creates a boxplot file to compare themselves

Usage

create_boxplot(correlation_objects, objects_names, elite, high, filepath)

Arguments

correlation_objects

Correlation objects to be compared

objects_names

Correlation objects names

elite

Integer that will define the number of top and bottom values of correlation objects to be taken into account (e.g. top and bottom 25)

high

Integer that will define the number of next top and bottom values of correlation objects to be taken into account (e.g. top and bottom 275)

filepath

The full path name of the output file

Value

A boxplot comparing different correlation objects

Details

Correlation structures contain correlation/covariation scores for each pair of elements [i,j]. The boxplot will compare these structures using color codes : the highest values are dark blue, the next highest values are light blue, the lowest values are red and the next lowest values are pink.

Examples

Run this code
# NOT RUN {
msf <- system.file("msa/toy_align.msf", package = "Bios2cor")
  align <- import.msf(msf)

  #Creating OMES object
  omes <- omes(align,fileHelix= NULL , diag= 0, fileCSV= NULL, gap_val= 0.8, z_score= TRUE)
  omes <-omes$normalized

  #Creating list for boxplots
    corr_objects <- list(omes)
    corr_objects_names <- c("omes")
    create_boxplot(corr_objects, corr_objects_names, 25, 275,"boxplot.png")
# }

Run the code above in your browser using DataLab