\Header{grid.segments}{Draw Line Segments in a Grid Viewport}
\keyword{dplot}{grid.segments}
\begin{Description}\relax
This function draws line segments.\end{Description}
\begin{Usage}
\begin{verbatim}
grid.segments(x0 = unit(0, "npc"), y0 = unit(0, "npc"),
              x1 = unit(1, "npc"), y1 = unit(1, "npc"),
              default.units = "npc", units.per.obs = FALSE,
              gp = gpar(), draw = TRUE, vp = NULL)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x0}] Numeric indicating the starting x-values of the line segments. 
\item[\code{y0}] Numeric indicating the starting y-values of the line
segments. 
\item[\code{x1}] Numeric indicating the stopping x-values of the line
segments. 
\item[\code{y1}] Numeric indicating the stopping y-values of the line segments.
\item[\code{gp}] An object of class \code{gpar}. 
\item[\code{default.units}] A string. 
\item[\code{units.per.obs}] A boolean indicating whether distinct units are
given for each x/y-value. 
\item[\code{draw}] A logical value indicating whether graphics output
should be produced.
\item[\code{vp}] A Grid viewport object (or NULL)
\end{ldescription}
\end{Arguments}
\begin{Value}
An object of class \code{"grob"}.\end{Value}
\begin{Author}\relax
Paul Murrell\end{Author}
\begin{SeeAlso}\relax
\link{Grid},
\code{\Link{viewport}}\end{SeeAlso}

