Skip to content

Commit

Permalink
update to ggplot2 v3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickaël Canouil committed Apr 16, 2020
1 parent 0c424f7 commit fc0c99f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rain
Title: Reference-based Ancestry INference
Version: 0.3.2
Version: 0.3.3
Authors@R:
c(person(given = "Mickaël",
family = "Canouil",
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# rain 0.3.3

## Minor improvements and fixes

* In `/R/pca_report.R`, update to `ggplot2` `v3.3.0`.

# rain 0.3.2

## Minor improvements and fixes
Expand Down
2 changes: 1 addition & 1 deletion R/pca_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pca_report <- function(
) %>%
ggplot2::ggplot(mapping = ggplot2::aes(x = .data[["x"]], y = .data[["y"]])) +
ggplot2::geom_bar(stat = "identity", width = 1, colour = "white", fill = "#3B528BFF", na.rm = TRUE) +
ggplot2::scale_y_continuous(labels = scales::percent, expand = ggplot2::expand_scale(mult = c(0, 0.05))) +
ggplot2::scale_y_continuous(labels = scales::percent, expand = ggplot2::expansion(mult = c(0, 0.05))) +
ggplot2::labs(y = glue::glue("Inertia (% of {n_comp} PCs)"), x = "Principal Components (PCs)")
print(p)
cat("\n")
Expand Down

0 comments on commit fc0c99f

Please sign in to comment.