aboutsummaryrefslogtreecommitdiff
path: root/man/calplot.Rd
blob: 7500912b92b916c8530cafd8648de5e8d92ca930 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
\name{calplot}
\alias{calplot}
\title{Plot calibration graphs}
\description{
	Produce graphics of calibration data, the fitted model as well
  as prediction and confidence intervals.
}
\usage{
  calplot(x,y,intercept=FALSE,measurand="substance x",xunit="mg/L",yunit="Area",level=0.95)
}
\arguments{
  \item{x}{
    A vector of x values.
    }
  \item{y}{
    A vector of y values.
    }
  \item{intercept}{
    A boolean describing if the calibration curve is to be forced
    through zero.
    }
  \item{measurand}{ 
    The name of what is being measured as a character vector.
    }
  \item{xunit}{
    The unit of the given values on the x axis as a character vector.
    }
  \item{yunit}{
    The unit of the y axis as a character vector. Defaults to "Area".
    }
  \item{level}{
    The confidence level of the confidence and prediction bands. Defaults to
    0.95.
    }
}
\value{
  A linear model object for y ~ x.  You will also get a plot of the calibration
  data, of your fitted model as well as lines showing the confidence limits and
  the prediction limits.
} 
\examples{
data(pahCalibration)
attach(pahCalibration)
\dontrun{calplot(conc,phenanthrene,"Phenanthrene","mg/L")}
detach(pahCalibration)
}
\author{
  Johannes Ranke 
  \email{jranke@uni-bremen.de} 
  \url{http://www.uft.uni-bremen.de/chemie/ranke}
}
\keyword{regression}

Contact - Imprint