Learn R Programming

pla (version 0.1)

plotSamples: Scatter plot for parallel line models

Description

Make one scatter plot of the samples in a parallel line assay, with fitted models.

Usage

plotSamples(dataframe,
            LMfits,
            sampleLabels = levels(unlist(dataframe["Sample"])),
            indexOfReference = 1,
            pdfName = "SpecifiedModel.pdf",
            joinReplicates = TRUE,
            showRho = TRUE,
            xlab = "Log(Dosis)",
            ylab = "Response: Response",
            pch = 14 + as.numeric(unlist(dataframe["Replicate"])),
            cex = 2,
            lwd = 4,
            colTst = "black",
            colRef = "grey",
            colRho = "grey80",
            main = "Parallel Line Model",
            sub = "Specified Model")

Arguments

dataframe
The data.frame with relevant variables (Replicate, Response, indexOfTreatment, Z, and Zjitter), created by
LMfits
Result of lm with relevant regression coefficients. Fitted values, intercepts and slopes are extracted from this model.
sampleLabels
indexOfReference
pdfName
joinReplicates
If TRUE the samples from same block or row are joined by lines in the plots for unrestricted models, i.e. for the models with dilution as a factor.
showRho
If TRUE then the potency is displayed in the plot for the restricted model.
xlab
A character string giving the title on horizontal axis of the plot.
ylab
A character string giving the title on vertical axis of the plot.
pch
Vector of symbols for plot, par.
cex
See par about size of characters for plot.
lwd
See par about line width for plot.
colTst
colRef
colRho
main
sub

Value

  • No values returned.

Details

This function is called from pla.plots.