\HeaderA{monoSpline}{Fitting a curve with monotonic spline}{monoSpline}
\keyword{methods}{monoSpline}
\begin{Description}\relax
Fitting a curve with monotonic spline
\end{Description}
\begin{Usage}
\begin{verbatim}
monoSpline(x, y, newX=NULL, nKnots = 6, ifPlot = FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] a vector represents x values 
\item[\code{y}] a vector represents y values 
\item[\code{newX}] the new values to be transformed. If not provided, "x" will be used. 
\item[\code{nKnots}] parameter used by function smoothCon in package mgcv 
\item[\code{ifPlot}] determine whether to plot intermediate results 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Function internally called by monoSmu
\end{Details}
\begin{Value}
return the transformed "newX" based on the smoothed curve
\end{Value}
\begin{Author}\relax
Simon Lin, Pan Du
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{monoSmu}{monoSmu}}
\end{SeeAlso}

