Skip to content

Commit c0a6fe5

Browse files
committed
Fix plots of exponential and gamma
Reported by Farid Cheraghi.
1 parent 7dbceb7 commit c0a6fe5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.2
1+
0.1.3

figs/distributions.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,12 @@ plot.f <- function(mode, xmin=0, xmax=5,
236236
plot.exp <- function(mode, xmin=0, xmax=5,
237237
theta=data.frame(c(2,1,0.4)),
238238
title="Exponential") {
239-
lab.fn <- function(x) substitute(beta==i, list(i=x))
239+
lab.fn <- function(x) substitute(beta==i, list(i=1/x))
240240
plot.continuous(xmin, xmax, theta, "exp", mode, title, lab.fn)
241241
}
242242

243243
plot.gamma <- function(mode, xmin=0, xmax=20,
244-
theta=data.frame(a=c(1,2,3,5,9), b=c(2,2,2,1,0.5)),
244+
theta=data.frame(a=c(1,2,3,5,9), b=c(0.5,0.5,0.5,1,2)),
245245
title="Gamma") {
246246
lab.fn <- function(x, y) substitute(list(alpha==i, beta==j), list(i=x, j=y))
247247
plot.continuous(xmin, xmax, theta, "gamma", mode, title, lab.fn)

0 commit comments

Comments
 (0)