Skip to content

Commit

Permalink
Merge pull request #77 from katilingban/dev
Browse files Browse the repository at this point in the history
remove line on borders of plots
  • Loading branch information
ernestguevarra authored Mar 15, 2024
2 parents 922a9cd + 12bd919 commit 8eb64af
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
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

0 comments on commit 8eb64af

Please sign in to comment.