Skip to content

Commit

Permalink
rename to gg_ribbon_line
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhodge931 committed Dec 9, 2024
1 parent 140a0a6 commit 3f365cd
Show file tree
Hide file tree
Showing 15 changed files with 65 additions and 69 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export(gg_jitter)
export(gg_label)
export(gg_line)
export(gg_linerange)
export(gg_lineribbon)
export(gg_path)
export(gg_point)
export(gg_pointrange)
Expand All @@ -37,6 +36,7 @@ export(gg_quantile)
export(gg_raster)
export(gg_rect)
export(gg_ribbon)
export(gg_ribbon_line)
export(gg_rug)
export(gg_segment)
export(gg_sf)
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Removed `aes_colour_darken`, `aes_colour_lighten`, `aes_fill_darken` and `aes_colour_lighten`.
* Removed `gg_ribbon`, `gg_boxplot`, `gg_crossbar` and `gg_smooth` alpha default to `NA`.
* Added colour blending (e.g. `blend = "multiply`).
* Added `gg_lineribbon`.
* Added `gg_ribbon_line`.
* Updated `*_mode_*` themes to default to `axis_line_linewidth = 0.25`.

# ggblanket 11.0.0
Expand Down
8 changes: 4 additions & 4 deletions R/gg_blanket.R
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ gg_blanket <- function(data = NULL,
stat = stat,
position = position,
mapping = ggplot2::aes(!!!mapping),
params = rlang::list2(outlier.alpha = 1, ...),
params = rlang::list2(...),
show.legend = show_legend,
) +
coord
Expand All @@ -257,7 +257,7 @@ gg_blanket <- function(data = NULL,
stat = stat,
position = position,
mapping = ggplot2::aes(!!!mapping),
params = rlang::list2(outlier.alpha = 1, ...),
params = rlang::list2(...),
show.legend = show_legend,
) |> ggblend::blend(blend = blend) +
coord
Expand Down Expand Up @@ -464,7 +464,7 @@ gg_blanket <- function(data = NULL,
stat = stat,
position = position,
mapping = ggplot2::aes(!!!mapping),
params = rlang::list2(outlier.alpha = 1, ...),
params = rlang::list2(...),
show.legend = show_legend,
) +
coord
Expand All @@ -476,7 +476,7 @@ gg_blanket <- function(data = NULL,
stat = stat,
position = position,
mapping = ggplot2::aes(!!!mapping),
params = rlang::list2(outlier.alpha = 1, ...),
params = rlang::list2(...),
show.legend = show_legend,
) |> ggblend::blend(blend = blend) +
coord
Expand Down
4 changes: 2 additions & 2 deletions R/gg_lineribbon.R → R/gg_ribbon_line.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#'
#' data.frame(year = 1875:1972, level = as.vector(LakeHuron)) |>
#' mutate(level_min = level - 1, level_max = level + 1) |>
#' gg_lineribbon(
#' gg_ribbon_line(
#' x = year,
#' y = level,
#' ymin = level_min,
Expand All @@ -24,7 +24,7 @@
#' blend = "multiply",
#' )
#'
gg_lineribbon <- function(data = NULL,
gg_ribbon_line <- function(data = NULL,
...,
stat = "identity",
position = "identity",
Expand Down
1 change: 0 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ knitr::opts_chunk$set(
[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/last-month/ggblanket?color=lightgrey)](https://r-pkg.org/pkg/ggblanket)
[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/last-week/ggblanket?color=lightgrey)](https://r-pkg.org/pkg/ggblanket)
[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/last-day/ggblanket?color=lightgrey)](https://r-pkg.org/pkg/ggblanket)
[![R-CMD-check](https://github.com/davidhodge931/ggblanket/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/davidhodge931/ggblanket/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

## Overview
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ downloads](https://cranlogs.r-pkg.org/badges/last-month/ggblanket?color=lightgre
downloads](https://cranlogs.r-pkg.org/badges/last-week/ggblanket?color=lightgrey)](https://r-pkg.org/pkg/ggblanket)
[![CRAN RStudio mirror
downloads](https://cranlogs.r-pkg.org/badges/last-day/ggblanket?color=lightgrey)](https://r-pkg.org/pkg/ggblanket)
[![R-CMD-check](https://github.com/davidhodge931/ggblanket/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/davidhodge931/ggblanket/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

## Overview
Expand Down
10 changes: 5 additions & 5 deletions man/gg_lineribbon.Rd → man/gg_ribbon_line.Rd

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

10 changes: 5 additions & 5 deletions tests/testthat/_snaps/article-go-further/5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/article-go-further/6.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/vignette-ggblanket/16.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3f365cd

Please sign in to comment.