printText {iSPlot} | R Documentation

## Print the row name next to a point

### Description

printText prints the row name next to a point. printText is called when the view mode is identify and when the user has positioned the mouse over a point on the active plot.

### Usage

    printText(curPoint, curPlot, color)

### Arguments

`curPoint` | the current point, which is a list containing the elements closestXY and closestPoint - it is the list returned from identifyPoint
`curPlot` | the active plot, an object of class plotView
`color` | the color of the text, a character string

### Author(s)

Elizabeth Whalen

### See Also

`checkPoint`

### Examples

      if (interactive())
      {
        createControlWindow()
        # should load data through Open Data or Open File under the File menu
        data(USArrests)
        loadDFData(USArrests,"USArrests")

        # plotting the data should occur through Plot Data under
        # the Display menu
        createView(type = "plotView", dataName = "USArrests",
                   plotType = "sPlotView", dfRows = 1:nrow(USArrests),
                   dfColumns = 1:2)

        # should set the view mode using the ViewMode menu
        setIdentifyMode()

        # now move the mouse over a point on the plot and the point should
        # be highlighted with the row name printed next to it so printText was
        # called
      }

[Package iSPlot version 1.0.7 Index]