Skip to content

Commit

Permalink
Fix roxygen/Rd issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Jun 3, 2024
1 parent 44499f2 commit ed106db
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 55 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Suggests:
rsvg,
ggridges
LazyData: true
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
Config/Needs/check:
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ S3method(to_basic,GeomDensity2d)
S3method(to_basic,GeomDensityLine)
S3method(to_basic,GeomDensityRidges)
S3method(to_basic,GeomDensityRidges2)
S3method(to_basic,GeomDensityRidgesGradient)
S3method(to_basic,GeomDotplot)
S3method(to_basic,GeomErrorbar)
S3method(to_basic,GeomErrorbarh)
Expand All @@ -70,6 +71,7 @@ S3method(to_basic,GeomRasterAnn)
S3method(to_basic,GeomRect)
S3method(to_basic,GeomRibbon)
S3method(to_basic,GeomRidgeline)
S3method(to_basic,GeomRidgelineGradient)
S3method(to_basic,GeomRug)
S3method(to_basic,GeomSegment)
S3method(to_basic,GeomSf)
Expand Down
20 changes: 10 additions & 10 deletions R/ggridges.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#' Get data for ridge plots
#'
#' @param data dataframe, the data returned by `ggplot2::ggplot_build()`.
#' @param na.rm boolean, from params
#'
#' @return dataframe containing plotting data
#'
# Get data for ridge plots
#
# @param data dataframe, the data returned by `ggplot2::ggplot_build()`.
# @param na.rm boolean, from params
#
# @return dataframe containing plotting data
#
get_ridge_data <- function(data, na.rm) {
if (isTRUE(na.rm)) {
data <- data[stats::complete.cases(data[c("x", "ymin", "ymax")]), ]
Expand All @@ -27,9 +27,9 @@ get_ridge_data <- function(data, na.rm) {
}


#' Prepare plotting data for ggridges
#' @param closed boolean, should the polygon be closed at bottom (TRUE for
#' geom_density_ridges2, FALSE for geom_density_ridges)
# Prepare plotting data for ggridges
# @param closed boolean, should the polygon be closed at bottom (TRUE for
# geom_density_ridges2, FALSE for geom_density_ridges)
prepare_ridge_chart <- function(data, prestats_data, layout, params, p, closed = FALSE, ...) {
d <- get_ridge_data(data, params$na.rm)

Expand Down
19 changes: 0 additions & 19 deletions man/get_ridge_data.Rd

This file was deleted.

23 changes: 0 additions & 23 deletions man/prepare_ridge_chart.Rd

This file was deleted.

51 changes: 49 additions & 2 deletions man/reexports.Rd

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

0 comments on commit ed106db

Please sign in to comment.