Saving PhyloPlots plots

Is there a programmatic way to save a plot generated using PhyloNetworks and PhyloPlots without resorting to R calls? The latter will not accept a file name passed from program arguments, and is, therefore, not very useful in my code.

I just discovered that the file name can be programmatically inserted into the R command, so, problem solved.