Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cecicampanile committed Dec 20, 2024
1 parent 19ca138 commit 7e8c50a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions R/plotInObservation.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ plotInObservation <- function(result,
x = "Date"
)
p$data <- p$data |>
dplyr::arrange(time_interval) |>
dplyr::arrange(.data$time_interval) |>
dplyr::mutate(
show_label = seq_along(time_interval) %% ceiling(nrow(p$data) / 20) == 0
show_label = seq_along(.data$time_interval) %% ceiling(nrow(p$data) / 20) == 0
)

p <- p +
Expand Down
6 changes: 3 additions & 3 deletions R/plotRecordCount.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ plotRecordCount <- function(result,
x = "Date"
)
p$data <- p$data |>
dplyr::arrange(time_interval) |>
dplyr::group_by(omop_table) |>
dplyr::arrange(.data$time_interval) |>
dplyr::group_by(.data$omop_table) |>
dplyr::mutate(
show_label = if (dplyr::cur_group_id() == 1) {
seq_along(time_interval) %% ceiling(n() / 20) == 0
seq_along(.data$time_interval) %% ceiling(dplyr::n() / 20) == 0
} else {
FALSE
}
Expand Down

0 comments on commit 7e8c50a

Please sign in to comment.