[R] How to change the margin widths in png-plots?

From: kone <attenka_at_utu.fi>
Date: Thu 15 Jun 2006 - 10:36:25 EST


Hello,

I have tried to change the margin widths so that mtext (here "sd of consecutive pc intervals", look at the picture) and plot(...,xlab="bar") fits to the picture.

Here is an example:
http://users.utu.fi/attenka/margins.png

This doesn't help:
par(mar=c(5.1, 7.1, 4.1, 2.1))

And here are the commands:

png(filename="/Users/kone/Vaitostutkimus/Pictures/ BachBWV60_sd_cons_pc_int.png", width = 2800, height = 1200,pointsize = 12, bg = "white");
plot(Compo_SD_succ_int_array_vector,ylim=c(0.40,1.9),col="white",xlab="b ar",ylab="", cex.lab=3, cex.axis=2);
mtext("sd of consecutive pc intervals", side=2, line=0, padj=-1.8,at=1.2, cex=3)
lines(Compo_SD_succ_int_array_vector,col=1,lty=1,lwd=2); text(2,0.93,labels="*",cex=3) # "an asterisk..." dev.off();

What do I do next?

Atte Tenkanen, Turku Finland

        [[alternative text/enriched version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 15 11:51:26 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 15 Jun 2006 - 14:12:33 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.