Despite the fact that none of my examples showed this during our 10 min meeting - this is an issue! layout doesn't work when the plot object is returned from a function because of the on.exit(dev.flush()) line in print.R (works when you comment that out). When the creation of a new gsplot object is outside of the function, it is fine. But when it's inside the function, the layout is ignored.
Despite the fact that none of my examples showed this during our 10 min meeting - this is an issue!
layout
doesn't work when the plot object is returned from a function because of theon.exit(dev.flush())
line in print.R (works when you comment that out). When the creation of a new gsplot object is outside of the function, it is fine. But when it's inside the function, the layout is ignored.Works:
Doesn't work: