I was able to plot and generate files (png) of the simple graphics, but in case of several graphics in the same window (as in the case of x11) I can not save the file in the directory.
png(filename="box_sv_sst_mean.png",width=2034,height=2034,units="px",pointsize=12,bg="white",res=300)
x11(width = 14, height = 7)
par(mfrow = c(1,2),mar=c(5,4,2,2),oma=c(0,0,2,0))
boxplot(SSTmean~year,ylab="temperatura °C",xlab="ano")
boxplot(SSTmean~month,ylab="temperatura °C",xlab="mês")
title("SST Média",outer=TRUE,cex.main=2)
dev.off()
Is it possible to save the chart using png(filename=nome_do_grafico.png)
and dev.off()
? Where is the error?