Skip to content

Commit 58e6baf

Browse files
committed
Document themes more homogeneously
Make all themes symmetrically reference the general ggtheme documentation Document theme_grey and theme_gray
1 parent c2d1cfc commit 58e6baf

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

R/theme-defaults.r

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@
4646
#' p + theme_minimal()
4747
#' p + theme_classic()
4848
#'
49-
#' @aliases theme_gray theme_grey
50-
#' @export theme_gray theme_grey
49+
#' @name ggtheme
50+
NULL
51+
52+
#' @export
5153
#' @rdname ggtheme
5254
theme_grey <- function(base_size = 12, base_family = "") {
5355
theme(
@@ -103,6 +105,8 @@ theme_grey <- function(base_size = 12, base_family = "") {
103105
complete = TRUE
104106
)
105107
}
108+
#' @export
109+
#' @rdname ggtheme
106110
theme_gray <- theme_grey
107111

108112
#' @export

man/ggtheme.Rd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
% Generated by roxygen2 (4.0.0): do not edit by hand
2-
\name{theme_grey}
2+
\name{ggtheme}
3+
\alias{ggtheme}
34
\alias{theme_bw}
45
\alias{theme_classic}
56
\alias{theme_gray}
@@ -11,6 +12,8 @@
1112
\usage{
1213
theme_grey(base_size = 12, base_family = "")
1314

15+
theme_gray(base_size = 12, base_family = "")
16+
1417
theme_bw(base_size = 12, base_family = "")
1518

1619
theme_linedraw(base_size = 12, base_family = "")

0 commit comments

Comments
 (0)