if (FALSE) {
library(phenology)
# Example
data(MarineTurtles_2002)
ECFOCF_2002 <- TableECFOCF(MarineTurtles_2002)
o_mu1p2_NB <- fitCF(x = c(mu = 4.6426989650675701,
sd = 75.828239144717074,
p1 = 0.62036295627161053,
p2 = -2.3923021862881511,
OTN = 0.33107456308054345),
data=ECFOCF_2002)
par(mar=c(4, 4, 1, 1)+0.4)
plot(o_mu1p2_NB, result="data", category=NA,
bty="n", las=1, cex.points=3, cex.axis = 0.8)
plot(o_mu1p2_NB,result="data", category=NA,
bty="n", las=1, cex.points=3, pch=NA,
col.labels = "red", show.labels=TRUE, cex.0=0.2,
show.0 = TRUE, col.0="blue", pch.0=4)
plot(o_mu1p2_NB, result="dataOCF", category=NA,
bty="n", las=1)
plot(o_mu1p2_NB, result="dataECF", category=NA,
bty="n", las=1)
plot(o_mu1p2_NB, result="CF", bty="n", las=1)
plot(o_mu1p2_NB, result="OCF", category=1, bty="n", las=1)
plot(o_mu1p2_NB, result="OCF", category=2, bty="n", las=1)
plot(o_mu1p2_NB, result="ECFOCF", bty="n", las=1)
plot(o_mu1p2_NB, result="ECFOCF0", bty="n", las=1)
plot(o_mu1p2_NB, result="ECFOCF0", category=1, bty="n", las=1)
plot(o_mu1p2_NB, result="ECFOCF0", category=2, bty="n", las=1)
plot(o_mu1p2_NB, result="Prob", category=c(1, 2), bty="n", las=1)
plot(o_mu1p2_NB, result="Prob", category=c(2, 1), bty="n", las=1)
}
Run the code above in your browser using DataLab