Re: [R] nice log-log plots

2010-03-15 Thread Martin Maechler
> "JL" == Jim Lemon > on Mon, 15 Mar 2010 17:53:40 +1100 writes: JL> On 03/15/2010 03:12 AM, ElManuelito wrote: >> I'm open to any suggestions and improvements... >> ... >> #plot.loglog(f,S,type="o",col=4,pch="",xaxs="i",yaxs="i"); >> JL> Hi ElManuelito, The

Re: [R] nice log-log plots

2010-03-14 Thread Jim Lemon
On 03/15/2010 03:12 AM, ElManuelito wrote: I'm open to any suggestions and improvements... ... #plot.loglog(f,S,type="o",col=4,pch="",xaxs="i",yaxs="i"); Hi ElManuelito, The first improvement would be to send toy data so that we could play with your functions. The second improvement would b

Re: [R] nice log-log plots

2010-03-14 Thread ElManuelito
Here's what I do, I'm open to any suggestions and improvements... seq.log=function(x1,x2="1"){ if(length(x1)==2){x2=x1[2];x1=x1[1];} n1=floor(log(x1)/log(10)) n2=floor(log(x2)/log(10)) suff=NULL; if(x1==1000){n1=n1+1;} if(x2==1000){suff=1000;}