Skip to content

Commit

Permalink
Merge pull request #20 from emitanaka/master
Browse files Browse the repository at this point in the history
theme_strip() + dependency fix
  • Loading branch information
dicook committed Jul 5, 2022
2 parents 2e23835 + 086c404 commit 0f8f3d8
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ LazyData: true
Type: Package
LazyLoad: false
VignetteBuilder: knitr
RoxygenNote: 7.1.1
RoxygenNote: 7.1.2
Encoding: UTF-8
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export(resid_sigma)
export(rorschach)
export(sample_size)
export(sep_dist)
export(theme_strip)
export(uni_dist)
export(visual_power)
import(fpc)
Expand Down
17 changes: 17 additions & 0 deletions R/theme.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


#' A theme to minimally strip away the context
#'
#' Note this is not a complete theme hence why there are no arguments.
#'
#' @examples
#' library(ggplot2)
#' ggplot(cars, aes(dist, speed)) + theme_strip()
#'
#' @export
theme_strip <- function() {
ggplot2::theme(axis.title = ggplot2::element_blank(),
axis.text = ggplot2::element_blank(),
axis.ticks.length = grid::unit(0, "mm"))

}
34 changes: 34 additions & 0 deletions man/sample_size.Rd

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

16 changes: 16 additions & 0 deletions man/theme_strip.Rd

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

0 comments on commit 0f8f3d8

Please sign in to comment.