Skip to content

Commit

Permalink
Release v0.5.10 (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
mllg authored Aug 18, 2022
1 parent e4d3120 commit 5b5548a
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 20 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: mlr3viz
Title: Visualizations for 'mlr3'
Version: 0.5.9
Version: 0.5.10
Authors@R: c(
person("Michel", "Lang", , "[email protected]", role = c("cre", "aut"),
comment = c(ORCID = "0000-0001-9754-0393")),
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# mlr3viz 0.5.10

- Improved documentation.
- Make checks run without suggested packages.

# mlr3viz 0.5.9

- Plots for survival objects moved to mlr3proba.
Expand Down
26 changes: 13 additions & 13 deletions R/theme-mlr3.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,21 @@ theme_mlr3 = function(base_size = 12, base_family = "", border = FALSE, margin =
}

.theme = theme_light(base_size = base_size, base_family = base_family) %+replace%
theme(panel.border = panel.border,
axis.line = axis.line,
axis.text = element_text(color = "black"),
theme(panel.border = panel.border,
axis.line = axis.line,
axis.text = element_text(color = "black"),

legend.key = element_blank(),
# facets
strip.background.x = element_rect(fill = NA, colour = "black", size = 1),
strip.background.y = element_rect(fill = NA, colour = "black", size = 1),
strip.text.x = element_text(color = "black", size = base_size, margin = margin(.15, 0, .15, 0, "cm")),
strip.text.y = element_text(color = "black", size = base_size, margin = margin(.5, .15, .5, .15, "cm"),
angle = 270),
legend.key = element_blank(),
# facets
strip.background.x = element_rect(fill = NA, colour = "black", size = 1),
strip.background.y = element_rect(fill = NA, colour = "black", size = 1),
strip.text.x = element_text(color = "black", size = base_size, margin = margin(.15, 0, .15, 0, "cm")),
strip.text.y = element_text(color = "black", size = base_size, margin = margin(.5, .15, .5, .15, "cm"),
angle = 270),

plot.margin = plot.margin,
legend.position = legend,
complete = TRUE)
plot.margin = plot.margin,
legend.position = legend,
complete = TRUE)

if (x.text.angle != 0) {
.theme = .theme + theme(axis.text.x = element_text(angle = x.text.angle, hjust = xhjust))
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# mlr3viz

Package website: [release](https://mlr3viz.mlr-org.com/) |
Package website: [release](https://mlr3viz.mlr-org.com/) \|
[dev](https://mlr3viz.mlr-org.com/dev/)

<!-- badges: start -->
Expand Down Expand Up @@ -62,8 +62,8 @@ respective functions.

{mlr3viz} styles all plots with it’s own theme `theme_mlr3()` (which is
heavily influenced by the `ggpubr::theme_pubr()` theme) and the
“viridis” color palette. If you want to use a different theme or
color palette, apply it after the `autoplot()` call as in
“viridis” color palette. If you want to use a different theme or color
palette, apply it after the `autoplot()` call as in

``` r
autoplot(<object>) +
Expand All @@ -77,7 +77,7 @@ that was visualized.

For even more control, you can look up the source code which ggplot2
geoms were used internally for a specific `autoplot()` call
(e.g. `geom_point()`) and how they were called. You can then apply
these lines again with different arguments after the `autoplot()` call
(e.g. `geom_point()`) and how they were called. You can then apply these
lines again with different arguments after the `autoplot()` call
(similar as shown above with the `theme_gray()` adjustment) to overwrite
their appearance (for example point size, line width, etc.).
Binary file modified man/figures/README-demo-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-demo-2.png
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 tests/testthat/helper.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
expect_doppelganger = function(id, p) {
if (requireNamespace("vdiffr")) {
expect_doppelganger(id, p)
vdiffr::expect_doppelganger(id, p)
}
}

0 comments on commit 5b5548a

Please sign in to comment.