It seems like one path forward would be to create a second plot using
X11() and plot the second set there. That way it will certainly be
clean.
Hope this helps,
Mark
I'm very new to this but I have some little functions for creating new
devices, switching, deleting, etc. Small but make my code more
readable - to me anyway.
## Simple functions to add new plot, switchTo, etc.
Plot_AddNew = function(...) {
dev.new(...)
return(dev.cur())
}
Plot_SwitchTo = function(MyPlot) {
dev.set(MyPlot)
return(dev.cur())
}
then called like:
RollupEquityPlot <- Plot_AddNew()
Bobcat1EquityPlot <- Plot_AddNew()
Plot_SwitchTo(RollupEquityPlot)
then if I want to switch away and come back I've got some names I can
remember, etc., so things stay a bit more documented.
I'm thinking it could be improved by putting the return values/names
in a data.frame and not have a bunch of variables floating around
cluttering up ls() but I haven't focused on stuff like that yet. I'm
still trying to get multiple lines of different colors on the same
plat. (Newbie!)
Cheers,
Mark