I have done this a lot. Would you mind installing my pkg rockchalk and then
run example(plotSlope) and example(plotCurve)? If the output is close to
what you want, you can adjust my code. The vignette explains.
1. Create newdata object
2. Run that through predict
3. Make plot
None of this is rock
Can you provide a small reproducible example and explain what exactly is going
wrong?
Just a handful of data points will do.
B.
> On Apr 18, 2017, at 2:16 PM, Santiago Bueno wrote:
>
> Thanks Boris, the following is an extract of my data. I have developed
> biomass models using codes like:
Thanks Boris, the following is an extract of my data. I have developed
biomass models using codes like:
start <- coef (lm(log(Btot)~I(log(dbh**2*haut)),data=dat[dat$Btot>0,]))
start[1] <- exp(start[1])
names(start) <- c("a","b")
M1 <- nls(Btot~a*(dbh**2*haut)**b,data=dat,start=start,weights=1/d
3 matches
Mail list logo