Learn R Programming

ACCLMA (version 1.0)

plotLMA: Plots the ACC vs LOI and LMA graphs of an imported or manually entered data set

Description

This is the main function of the package and the one that should be used to plot the ACC vs LOI and LMA graphs. If weights are not relevant leave the column blank (null values)

Usage

plotLMA(str = NULL, header = FALSE)

Arguments

str
A string containing the full path of the CSV file to be imported, should be left blank if manual data entry is desired
header
A boolean variable indicating if the imported CSV file has a header row or not, ignored if str is null

Value

Details

References

See Also

Examples

Run this code
#plotLMA()

## The function is currently defined as
function (str = NULL, header = FALSE) 
{
    if (is.null(str)) {
        mat <- fillData()
    }
    else {
        mat <- fillCSVData(str, header)
    }
    mat <- calcWeights(mat)
    mat <- averageSameXs(mat)
    mat <- calcFX(mat)
    mat <- calcFY(mat)
    mat <- calcLOI(mat)
    mat <- calcLMA(mat)
    plotGraphs(mat)
    return(mat)
  }

Run the code above in your browser using DataLab