Skip to content

Commit

Permalink
Better looking boxplots
Browse files Browse the repository at this point in the history
  • Loading branch information
franzmohr committed Jul 8, 2023
1 parent 4216403 commit dd0e429
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/plot.teststats.bgvarest.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ plot.teststats.bgvarest <- function(x, ctry = NULL, ...) {
pos <- which(names(x) %in% ctry)
}

mgp_orig <- graphics::par("mgp")
graphics::par(mgp = c(3, 2.5, 0))

for (i in pos) {
ctry_name <- names(x)[i]
ctry_temp <- c()
Expand Down Expand Up @@ -51,6 +54,8 @@ plot.teststats.bgvarest <- function(x, ctry = NULL, ...) {
graphics::boxplot(ctry_temp, main = ctry_name, ...)
}

graphics::par(mgp = mgp_orig)

}


0 comments on commit dd0e429

Please sign in to comment.