\HeaderA{findElement}{Find an element on a plot}{findElement}
\keyword{data}{findElement}
\begin{Description}\relax
The findElement function will provide the same functionality as choosing
the Find menu item from the Edit menu on the control window.  To find an
element on the view, you can either match on a row name or a data element.
\end{Description}
\begin{Usage}
\begin{verbatim}
findElement(value, matchOn = "Row")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{value}] the value to find 
\item[\code{matchOn}] matchOn will be "Row" if the value is a row name and it will
be "Data" if the value is a data element
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Elizabeth Whalen
\end{Author}
\begin{Examples}
\begin{ExampleCode}
  if (interactive())
  {
    loadData("USArrests")
    setActiveMVC("USArrests")
    createSPlot(varx="Murder", vary="Assault")
    # this causes a point to be highlit when the left button is clicked 
    setCallFunc("leftButtonClick", "highlight a point")
    findElement("Idaho")
  }
\end{ExampleCode}
\end{Examples}

