Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liao961120 committed Jul 24, 2024
1 parent 554decb commit aa3e9f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot_forest.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ plot_forest = function(dat, labels, shade_inv=c(.25,.75),
}

if (is.null(center_pos)) {
mx = mean(dat[[i]])
mx = mean(dat[[i]], na.rm=T)
x_err = abs(x - mx)
center_pos = which(x_err == min(x_err))[1]
my = y[center_pos]
Expand Down

0 comments on commit aa3e9f2

Please # to comment.