1
I was able to plot and generate files (png) of the simple graphics, but in the case of several charts in the same window (as in the case of X11) I cannot 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()
You can save the chart using png(filename=nome_do_grafico.png)
and dev.off()
? Where is the error?
Thank you so much! I had already tried to eliminate the X11 line and it worked!
– Jade