diff --git a/R/ggbetweenstats_helpers.R b/R/ggbetweenstats_helpers.R index 0d5a8db9a..ead8406a1 100644 --- a/R/ggbetweenstats_helpers.R +++ b/R/ggbetweenstats_helpers.R @@ -31,9 +31,17 @@ x, y, centrality.path = FALSE, - centrality.path.args = list(linewidth = 1, color = "red", alpha = 0.5), + centrality.path.args = list( + linewidth = 1, + color = "red", + alpha = 0.5 + ), centrality.point.args = list(size = 5, color = "darkred"), - centrality.label.args = list(size = 3, nudge_x = 0.4, segment.linetype = 4), + centrality.label.args = list( + size = 3, + nudge_x = 0.4, + segment.linetype = 4 + ), ...) { centrality_df <- suppressWarnings(centrality_description(data, {{ x }}, {{ y }}, ...)) @@ -227,7 +235,7 @@ ggplot.component = NULL, ...) { # if no. of factor levels is greater than the default palette color count - .palette_message(package, palette, length(unique(levels(x)))[[1L]]) + .palette_message(package, palette, nlevels(x)) plot + labs( diff --git a/cran-comments.md b/cran-comments.md index 92ae0c7e4..5f724bbe4 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -2,7 +2,7 @@ 0 errors | 0 warnings | 0 note -- Fix breaking change caused by `{parameters}` updates. +- Maintenance release. ## revdepcheck results