This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
forked from Edouard-Legoupil/koboloadeR
-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from unhcr/gh-pages
Merge with UNHCR rep
- Loading branch information
Showing
116 changed files
with
3,763 additions
and
1,117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,8 +35,6 @@ | |
#' | ||
#' @author Edouard Legoupil | ||
#' | ||
#' @examples | ||
#' kobo_anonymise() | ||
#' | ||
#' @export kobo_anonymise | ||
#' | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#' @name kobo_left_align | ||
#' @rdname kobo_left_align | ||
#' @title UNHCR ggplot2 theme | ||
#' | ||
#' @description Left align chart title and subtitle on a ggplot2 | ||
#' | ||
#' @return Return better chart | ||
#' | ||
#' @author Edouard Legoupil - with inspiration from bbc | ||
#' | ||
#' @examples | ||
#' kobo_left_align() | ||
#' | ||
#' @export kobo_left_align | ||
#' | ||
|
||
kobo_left_align <- function(plot_name, pieces){ | ||
grob <- ggplot2::ggplotGrob(plot_name) | ||
n <- length(pieces) | ||
grob$layout$l[grob$layout$name %in% pieces] <- 2 | ||
return(grob) | ||
} |
Oops, something went wrong.