Skip to content

Commit

Permalink
Fix plots of exponential and gamma
Browse files Browse the repository at this point in the history
Reported by Farid Cheraghi.
  • Loading branch information
mavam committed Feb 5, 2016
1 parent 7dbceb7 commit c0a6fe5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.2
0.1.3
4 changes: 2 additions & 2 deletions figs/distributions.R
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,12 @@ plot.f <- function(mode, xmin=0, xmax=5,
plot.exp <- function(mode, xmin=0, xmax=5,
theta=data.frame(c(2,1,0.4)),
title="Exponential") {
lab.fn <- function(x) substitute(beta==i, list(i=x))
lab.fn <- function(x) substitute(beta==i, list(i=1/x))
plot.continuous(xmin, xmax, theta, "exp", mode, title, lab.fn)
}

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

0 comments on commit c0a6fe5

Please sign in to comment.