Displaying 1 result from an estimated 1 matches for "framvec".
2012 Apr 01
1
indexing in a function doesn't work?
...rame, framevec is the vector within
the dataframe you're using to subset (should be a percentage), form 1 is
the simple y~x for the plot, form 2 is y~x for regression, type is lm 1 or
2 nls ,form 3 is the formula for the nls, sx and sn are the start values
for nls
plotter<-function(a,b,fram,framvec,form1,form2,form3, type=1, xlm, ylm,
sx=.01,sn=25){
g<-ceiling(a/b)
par(mfrow=c(b,g))
num<-rep(0,a)
sub.plotter<-function(i,fram,framvec,form1,form2,form3,type,
xlm,ylm,var1,var2){
temp.i<-fram[framvec <=(i*.10),]
plot(form1, data=temp.i, xlim=c(0,xlm), ylim=c(0,ylm), main=((i-1)*....