\HeaderA{resetData}{Resets the data that corresponds to the active view}{resetData}
\keyword{data}{resetData}
\begin{Description}\relax
The resetData function will provide the same functionality as choosing
the Reset menu item from the Edit menu on the control window.  This function
will return the data set to its state when it was originally loaded.
\end{Description}
\begin{Usage}
\begin{verbatim}
resetData()
\end{verbatim}
\end{Usage}
\begin{Author}\relax
Elizabeth Whalen
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{loadData}{loadData}},
\code{\LinkA{replotViews}{replotViews}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  if (interactive())
  {
    loadData("USArrests")
    setActiveMVC("USArrests")
    createSPlot(varx="Murder", vary="Assault")
    setCallFunc("leftButtonClick", "highlight a point")
    # now click on a few points to highlight them
    # and then reset the data set (which will remove the highlighting)
    Sys.sleep(3)
    resetData()
  }
\end{ExampleCode}
\end{Examples}

