| removeEnvView {iSPlot} | R Documentation |
removeEnvView removes views from viewList based on the device number or the data name depending on whether the class is plotView or spreadView. removeEnvView is called when a gtk window containing a view is destroyed.
removeEnvView(viewItem)
viewItem |
the view object to remove from viewList |
Elizabeth Whalen
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)
# now check viewList in viewEnv
get("viewList",viewEnv)
# now close the gtk window that has the scatterplot in it
# closing the window will cause removeEnvView to be called
# then check again viewList in viewEnv - that
# sPlotView object should be removed
get("viewList",viewEnv)
}