Learn R Programming

PhenStat (version 2.6.0)

boxplotSexGenotypeResult: Method "boxplotSexGenotypeResult"

Description

Graph function for the phenotypic dataset. Creates a box plot split by sex and genotype. Is based on PhenTestResult object.

Usage

boxplotSexGenotypeResult(phenTestResult,graphingName=NULL,outputMessages=TRUE)

Arguments

phenTestResult
instance of the PhenTestResult class; mandatory argument
graphingName
a character string defining the name to be used on the graph for the dependent variable; mandatory argument
outputMessages
flag: "FALSE" value to suppress output messages; "TRUE" value to show output messages; default value TRUE

References

Karp N, Melvin D, Sanger Mouse Genetics Project, Mott R (2012): Robust and Sensitive Analysis of Mouse Knockout Phenotypes. PLoS ONE 7(12): e52410. doi:10.1371/journal.pone.0052410 West B, Welch K, Galecki A (2007): Linear Mixed Models: A practical guide using statistical software New York: Chapman & Hall/CRC 353 p.

See Also

PhenList

Examples

Run this code
    file <- system.file("extdata", "test1.csv", package="PhenStat")
    test <- PhenList(dataset=read.csv(file),
            testGenotype="Sparc/Sparc")
    result <- testDataset(test,
            depVariable="Lean.Mass")
    # box plot for dataset with two sexes: males and females
    boxplotSexGenotypeResult(result, 
            graphingName="BMC")
    
    file <- system.file("extdata", "test4.csv", package="PhenStat")
    test_1sex <- PhenList(dataset=read.csv(file),
            testGenotype="Mysm1/+")
    result_1sex <- testDataset(test_1sex,
            depVariable="Lean.Mass")
    # box plot for females only dataset
    boxplotSexGenotypeResult(result_1sex, 
            graphingName="Lean Mass (g)")

Run the code above in your browser using DataLab