Skip to content

Commit 14ae1dd

Browse files
author
Marie-Laure DELIGNETTE-MULLER
committed
good version of the file
1 parent d0b0421 commit 14ae1dd

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

share/fig4logo.r

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
require(fitdistrplus)
22
data(salinity)
33
log10LC50 <-log10(salinity)
4-
fit <- fitdistcens(log10LC50, "norm")
4+
fitn <- fitdistcens(log10LC50, "norm")
5+
fitc <- fitdistcens(log10LC50, "cauchy")
6+
cdfcompcens(list(fitc, fitn), xlim = c(1, 1.8), main = "",
7+
fitcol = c("blue", "orange"),
8+
fitlty = c(1, 1), fitlwd = c(2, 2))
9+
10+
data(salinity)
11+
fitln <- fitdistcens(salinity, "lnorm")
12+
fitw <- fitdistcens(salinity, "weibull")
13+
fitg <- fitdistcens(salinity, "gamma")
14+
cdfcompcens(list(fitln, fitw, fitg), main = "",
15+
fitcol = c("blue", "orange", "green"),
16+
fitlty = c(1, 1, 1), fitlwd = c(2, 2, 2))
17+
cdfcompcens(list(fitln, fitw, fitg), main = "",
18+
fitcol = c("blue", "orange", "green"),
19+
fitlty = c(1, 1, 1), fitlwd = c(2, 2, 2),
20+
xlogscale = TRUE)

0 commit comments

Comments
 (0)