\HeaderA{plotdensity.FCS}{Create density plots one parameter of one (or more) FCS object(s)}{plotdensity.FCS}
\aliasA{densityplot.FCS}{plotdensity.FCS}{densityplot.FCS}
\keyword{hplot}{plotdensity.FCS}
\begin{Description}\relax
Produce density plot(s) using the \code{\LinkA{density.lf}{density.lf}} function of
the  \code{\LinkA{locfit}{locfit}} library. a single column variable specified from the
data of one (or more) FCS object(s).
\end{Description}
\begin{Usage}
\begin{verbatim}
plotdensity.FCS(data,varpos,xlab,ylab,col, xlim = NULL, ylim = NULL,main=NULL,...)        
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{data}] a list of one (or more) FCS object(s) or a cytoSet object
\item[\code{varpos}] the numerical column variable position of the data of
the FCS object
\item[\code{xlab}] a title for the x axis
\item[\code{ylab}] a title for the y axis
\item[\code{col}] The colors for lines and points. Multiple colors can be
specified so that each point can be given its own color. If there
are fewer colors than points they are recycled in the standard
fashion. Lines will all be plotted in the first colour specified.
\item[\code{xlim}] limits for the x axis
\item[\code{ylim}] limits for the y axis
\item[\code{main}] title of the plot
\item[\code{...}] any other arguments are passed to the \code{\LinkA{plot}{plot}}
function
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Produce density plot(s) using the \code{\LinkA{density.lf}{density.lf}} function of
the  \code{\LinkA{locfit}{locfit}} library. 
Other options from the functions \code{\LinkA{plot}{plot}}.
\end{Details}
\begin{Value}
None.
\end{Value}
\begin{Author}\relax
N. Le Meur
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{density.lf}{density.lf}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}

 if (require(rfcdmin)) {
  ##Obtain the location of the fcs files 
  pathFiles<-system.file("bccrc", package="rfcdmin")
  drugFiles<-dir(pathFiles)

  ## Read a serie of FCS files
  drugData<-read.series.FCS(drugFiles,path=pathFiles,MY.DEBUG=FALSE)

  }

 ##Draw a density plot for the Foward SCatter parameter for the
 ##differents aliquots (of the same cell line) tested with different
 ##compounds.
 plotdensity.FCS(drugData,varpos=c(1),main="FSC for the aliquots treated with different compounds",ylim=c(0,0.005),ylab="Density of cells")
\end{ExampleCode}
\end{Examples}

