powered by
This function saves an interactive plot generated with one of the functions of this package as a png image. The result can then be included in documents or presentations.
savePlotAsPng(plot, file = "Rplot.png", width = 600, height = 480, ...)
The function only creates the required file. Nothing is returned
A plot generated with one of the functions of this package.
The name of the output file
Width of the output file
height of the output file
Other parameters passed to function [webshot::webshot]
if (FALSE) { mydata <- readAntares() myplot <- plot(mydata, variable = "MRG. PRICE", type = "density") savePlotAsPng(myplot, file = "myplot.png") }
Run the code above in your browser using DataLab