Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosbosse committed Nov 1, 2024
1 parent 73fb531 commit ab6aa6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions R/get-pit-histogram.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,14 @@
#' @examples
#' library("ggplot2")
#'
#' example <- as_forecast_sample(example_sample_continuous)
#' result <- get_pit_histogram(example, by = "model")
#' result <- get_pit_histogram(example_sample_continuous, by = "model")
#' ggplot(result, aes(x = mid, y = density)) +
#' geom_col() +
#' facet_wrap(. ~ model) +
#' labs(x = "Quantile", "Density")
#'
#' # example with quantile data
#' example <- as_forecast_quantile(example_quantile)
#' result <- get_pit_histogram(example, by = "model")
#' result <- get_pit_histogram(example_quantile, by = "model")
#' ggplot(result, aes(x = mid, y = density)) +
#' geom_col() +
#' facet_wrap(. ~ model) +
Expand Down
6 changes: 2 additions & 4 deletions man/get_pit_histogram.Rd

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

0 comments on commit ab6aa6c

Please sign in to comment.