Skip to content

Commit 4e77f1a

Browse files
committed
rename internal .view_scheme to plot_scheme
1 parent b0b5563 commit 4e77f1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/bayesplot-colors.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,18 +172,18 @@ print.bayesplot_scheme <- function(x, ...) {
172172
#' @export
173173
plot.bayesplot_scheme <- function(x, ...) {
174174
scheme <- attr(x, "scheme_name") %||% stop("Scheme name not found.")
175-
.view_scheme(scheme)
175+
plot_scheme(scheme)
176176
}
177177

178178

179179
#' @rdname bayesplot-colors
180180
#' @export
181181
color_scheme_view <- function(scheme) {
182182
if (missing(scheme) || length(scheme) == 1)
183-
return(.view_scheme(scheme))
183+
return(plot_scheme(scheme))
184184

185185
bayesplot_grid(
186-
plots = lapply(scheme, .view_scheme),
186+
plots = lapply(scheme, plot_scheme),
187187
grid_args = list(ncol = length(scheme))
188188
)
189189
}
@@ -194,7 +194,7 @@ color_scheme_view <- function(scheme) {
194194

195195
# plot color scheme
196196
# @param scheme A string (length 1) naming a scheme
197-
.view_scheme <- function(scheme) {
197+
plot_scheme <- function(scheme) {
198198
x <- if (missing(scheme))
199199
color_scheme_get() else color_scheme_get(scheme)
200200

0 commit comments

Comments
 (0)