Skip to content

Commit

Permalink
Merge branch '73-ggtheme' [#74]
Browse files Browse the repository at this point in the history
  • Loading branch information
philsf committed Dec 4, 2021
2 parents 6a76391 + 3c6d74b commit 0b3a65d
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
Package: philsfmisc
Type: Package
Title: philsf's miscellaneous R functions
Version: 0.6.5.9000
Version: 0.6.5.9001
Authors@R: person("Felipe", "Figueiredo", email = "[email protected]", role = c("aut", "cre"))
Description: Miscellaneous R functions for convenient data analyses.
License: file LICENSE
Encoding: UTF-8
LazyData: true
URL: https://github.com/philsf/philsfmisc
Depends: R (>= 3.3.0)
RoxygenNote: 7.1.1
RoxygenNote: 7.1.2
Imports:
ggplot2,
stringr
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export(is.within)
export(logsd2cv)
export(logvar2cv)
export(predint)
export(theme_ff)
importFrom(ggplot2,theme_classic)
importFrom(stats,qt)
importFrom(stats,sd)
importFrom(stringr,str_remove)
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# philsfmisc (development version)

- created ggplot2 theme_ff() #73

# philsfmisc 0.6.5

- New template: SAP #63
Expand Down
23 changes: 23 additions & 0 deletions R/theme_ff.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#' @title FUNCTION_TITLE
#' @description FUNCTION_DESCRIPTION
#' @param ... PARAM_DESCRIPTION
#' @return OUTPUT_DESCRIPTION
#' @details DETAILS
#' @examples
#' \dontrun{
#' if(interactive()){
#' #EXAMPLE1
#' }
#' }
#' @seealso
#' \code{\link[ggplot2]{ggtheme}}
#' @rdname theme_ff
#' @export
#' @importFrom ggplot2 theme_classic
theme_ff <- function(...) {
ggplot2::theme_classic(
...,
) %+replace% theme(
legend.position = "top",
)
}
30 changes: 30 additions & 0 deletions man/theme_ff.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0b3a65d

Please sign in to comment.