Right now, brandPlot() expects a ggplot object on input and returns a gTree object. This means we can't call brandPlot() twice in succession.
The solution is to allow brandPlot() to handle a gTree object on input and just put the brand icon into one of the existing viewports.
Right now,
brandPlot()expects aggplotobject on input and returns agTreeobject. This means we can't callbrandPlot()twice in succession.The solution is to allow
brandPlot()to handle agTreeobject on input and just put the brand icon into one of the existing viewports.