getActivePlot {iSPlot} | R Documentation |
getActivePlot determines which plot is active based on which device is active and it returns the plotView object that corresponds to this plot.
getActivePlot()
getActivePlot returns the plotView object that corresponds with the active plot.
Elizabeth Whalen
if (interactive()) { createControlWindow() # should load data through Open Data or Open File under the File menu data(USArrests) loadDFData(USArrests, "USArrests") # now go to the Display menu and choose the Plot Data menu item # make a scatterplot of this data set # then ask for the active plot using the function: # the following code should be run only after a plot has been created! #x<-getActivePlot() #print(class(x)) #print(colx(x)) #print(coly(x)) }