Skip to content

Commit

Permalink
good version of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
Marie-Laure DELIGNETTE-MULLER committed Sep 9, 2024
1 parent d0b0421 commit 14ae1dd
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion share/fig4logo.r
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
require(fitdistrplus)
data(salinity)
log10LC50 <-log10(salinity)
fit <- fitdistcens(log10LC50, "norm")
fitn <- fitdistcens(log10LC50, "norm")
fitc <- fitdistcens(log10LC50, "cauchy")
cdfcompcens(list(fitc, fitn), xlim = c(1, 1.8), main = "",
fitcol = c("blue", "orange"),
fitlty = c(1, 1), fitlwd = c(2, 2))

data(salinity)
fitln <- fitdistcens(salinity, "lnorm")
fitw <- fitdistcens(salinity, "weibull")
fitg <- fitdistcens(salinity, "gamma")
cdfcompcens(list(fitln, fitw, fitg), main = "",
fitcol = c("blue", "orange", "green"),
fitlty = c(1, 1, 1), fitlwd = c(2, 2, 2))
cdfcompcens(list(fitln, fitw, fitg), main = "",
fitcol = c("blue", "orange", "green"),
fitlty = c(1, 1, 1), fitlwd = c(2, 2, 2),
xlogscale = TRUE)

0 comments on commit 14ae1dd

Please sign in to comment.