https://github.com/cran/SimultAnR
Raw File
Tip revision: 60f489edc36c80e3a3dd54502fd7e3be8bd827f6 authored by Beatriz Goitisolo on 28 July 2013, 00:00:00 UTC
version 1.1
Tip revision: 60f489e
plot.CorrAn.Rd
\name{plot.CorrAn}
\alias{plot.CorrAn}
\title{Graph of Correspondence Analysis 
}
\description{Graphical display of correspondence analysis results in two 
dimensions.
}
\usage{
\method{plot}{CorrAn}(x, s1 = 1, s2 = 2, screen = TRUE, oar = 1, oac = 1, ...)
}
\arguments{
  \item{x      }{The output of the correspondence analysis (class 'CorrAn')}
  \item{s1     }{Dimension to plot on horizontal axis}
  \item{s2     }{Dimension to plot on vertical axis}
  \item{screen }{TRUE (all the graphs on screen) or FALSE (graphs in a file)\cr 
                 FALSE for S-plus}
  \item{oar    }{Output for active rows (1 = yes, 0 = no)}
  \item{oac    }{Output for active columns (1 = yes, 0 = no)} 
  \item{...    }{Further arguments passed to or from other methods}
}
\details{
The parameters \code{s1 = 1} and \code{s2 = 2} indicate that the graph is given 
for the first two dimensions.  
A plot of e.g. the second and the third dimensions is obtained by setting 
\code{s1 = 2} and \code{s2 = 3}. 
Notice that in this case the argument \code{nd} of the \code{CorrAn} function 
must be at least 3.
If there are supplementary elements in the analysis, the \code{plot.CorrAn} 
function provides two graphical outputs, one for the active elements and the 
second one for both active and supplementary elements.
}
\author{Amaya Zarraga, Beatriz Goitisolo
}

\seealso{
\code{\link{CorrAn}}, 
\code{\link{summary.CorrAn}}.
}
\examples{
data(shoplifting)
dataCA <- shoplifting[, 1:9]

CorrAn.out <- CorrAn(data=dataCA)

### Graphs on screen
plot(CorrAn.out, s1=1, s2=2, screen=TRUE)

### Graph on a pdf file without rows
pdf('CAGr.pdf',paper="a4r",width=12, height=9)
plot(CorrAn.out, s1=1, s2=2, screen=FALSE, oar=0)
dev.off()

}
\keyword{ multivariate }
\keyword{ correspondence analysis }

back to top