Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: tinyplot
Type: Package
Title: Lightweight Extension of the Base R Graphics System
Version: 0.4.0
Version: 0.4.0.99
Date: 2025-05-22
Authors@R:
c(
Expand Down
13 changes: 10 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,23 @@ _If you are viewing this file on CRAN, please check the
[latest NEWS](https://grantmcdermott.com/tinyplot/NEWS.html) on our website
where the formatting is also better._

## 0.4.0.99 (development version)

### Bug fixes

- Fix a narrow `tinytheme("ridge")` regression that was accidentally introduced in
v0.4.0, which was causing a palette mismatch for gradient legends. (#415 @grantmcdermott)

## 0.4.0

### New features:

#### New plot types

- `type = "barplot"` / `type = type_barplot()` for bar plots. This closes out
- `"barplot"` / `type_barplot()` for bar plots. This closes out
one of the last remaining canonical base plot types that we wanted to provide
a native `tinyplot` equivalent for. (#305 and #360 @zeileis and @grantmcdermott)
- `type = "violin"` / `type = type_violin()` for violin plots. (#354 @grantmcdermott)
- `"violin"` / `type_violin()` for violin plots. (#354 @grantmcdermott)

#### Other new features

Expand Down Expand Up @@ -92,7 +99,7 @@ where the formatting is also better._
- Added a new "Ticks & tips" vignette for non-standard workarounds.
(#381 @vincentarelbundock)
- Improved website theme and navigation layout, especially on mobile.
(#395 @zeileis)
(#395, #411, #413 @zeileis and @retostauffer)

### Internals:

Expand Down
3 changes: 3 additions & 0 deletions R/by_aesthetics.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ by_col = function(ngrps = 1L, col = NULL, palette = NULL, gradient = NULL, order
if (ngrps >= get_pal_lens(pal_theme) || ordered) {
pal_theme = get_tpar("palette.sequential", default = NULL)
}
# mostly a catch for x-gradient fills, e.g. type_ridge
} else if (gradient && !is.na(match_pal(pal_theme, hcl.pals()))) {
pal_theme = get_tpar("palette.sequential", default = NULL)
}
}
if (length(pal_theme) == 1) {
Expand Down
3,068 changes: 1,534 additions & 1,534 deletions inst/tinytest/_tinysnapshot/ridge_by_x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3,068 changes: 1,534 additions & 1,534 deletions inst/tinytest/_tinysnapshot/ridge_by_x_theme_ridge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3,068 changes: 1,534 additions & 1,534 deletions inst/tinytest/_tinysnapshot/ridge_by_x_theme_ridge2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion inst/tinytest/test-type_ridge.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tinytheme()
## by == x
f = function() {
tinyplot(Species ~ Sepal.Width | Sepal.Width, data = iris,
type = type_ridge(col = "white"), palette = "plasma")
type = type_ridge(col = "white"))
}
expect_snapshot_plot(f, label = "ridge_by_x")
tinytheme("ridge")
Expand Down