Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove line on borders of plots #77

Merged
merged 3 commits into from
Mar 15, 2024
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: paleta
Type: Package
Title: Collection of Palettes, Themes, and Theme Components
Version: 0.0.0.9000
Version: 0.0.0.9001
Authors@R: person(
given = "Ernest",
family = "Guevarra",
Expand Down
14 changes: 10 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# paleta (development version)
# Changes in version 0.0.0.9001

This is a pre-release of the `paleta` package. This package has:
## Bug fixes

* removed line on the borders of the plot;


# paleta (version 0.0.0.9000)

This is a pre-release of the `paleta` package. This package includes the
following features:

* colours, fonts, palettes, and themes for Africa CDC, NHS, World Bank, and UNICEF;
* utilities for getting/searching colours from the different organisations; and,
* utilities for tinting and shading colours.


15 changes: 11 additions & 4 deletions R/theme_paleta.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,17 @@ theme_paleta <- function(base_family = set_paleta_font(),
)

## Set plot background design ----
design <- design +
ggplot2::theme(
plot.background = ggplot2::element_rect(fill = plot_background_fill)
)
if (is.null(plot_background_fill)) {
design <- design +
ggplot2::theme(
plot.background = ggplot2::element_blank()
)
} else {
design <- design +
ggplot2::theme(
plot.background = ggplot2::element_rect(fill = plot_background_fill)
)
}

## Set legend design ----
design <- design +
Expand Down