Skip to content

Commit

Permalink
Merge pull request #6 from ianhussey/master
Browse files Browse the repository at this point in the history
consistent number of decimal places shown in forest plot
  • Loading branch information
Matti Vuorre committed Nov 14, 2018
2 parents d587c67 + 5f597c3 commit dc9c1dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/forest.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ forest <- function(model,
samples_sum[[grouping]])
# Create text intervals
samples_sum[["Interval"]] <- paste0(
round(samples_sum[["Estimate"]], digits),
format(round(samples_sum[["Estimate"]], digits), nsmall = digits),
" [",
round(samples_sum[[lwr]], digits),
format(round(samples_sum[[lwr]], digits), nsmall = digits),
", ",
round(samples_sum[[upr]], digits), "]"
format(round(samples_sum[[upr]], digits), nsmall = digits), "]"
)
# Order effects
if (sort) samples_sum <- dplyr::arrange_(samples_sum, "type", "Parameter", "Estimate")
Expand Down

0 comments on commit dc9c1dd

Please sign in to comment.