\HeaderA{createSPlot}{Creates an interactive scatterplot}{createSPlot}
\keyword{device}{createSPlot}
\begin{Description}\relax
The createSPlot function will provide the same functionality as choosing
the Plot Data menu item from the Display menu on the control window.  Before
creating a scatterplot, the data must be loaded using either the loadData or
loadFile functions.  Only the active model (MVC) can be plotted.
\end{Description}
\begin{Usage}
\begin{verbatim}
createSPlot(varx, vary, rowNames = "")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{varx}] the variable (column) name for the x axis 
\item[\code{vary}] the variable (column) name for the y axis 
\item[\code{rowNames}] the row names to display (only use this parameter if the
user wants to plot a subset of the data) 
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Elizabeth Whalen
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{loadData}{loadData}},
\code{\LinkA{loadFile}{loadFile}},
\code{\LinkA{createSpreadsheet}{createSpreadsheet}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  if (interactive())
  {
    loadData("USArrests")
    setActiveMVC("USArrests")
    createSPlot(varx="Murder", vary="Assault")
  }
\end{ExampleCode}
\end{Examples}

