Skip to content

Commit b69fbf6

Browse files
committed
doc: NEWS & authors update and import scales in NAMESPACE
1 parent 944c6d5 commit b69fbf6

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ importFrom(officer,ph_with)
5858
importFrom(officer,read_pptx)
5959
importFrom(officer,styles_info)
6060
importFrom(officer,to_pml)
61+
importFrom(scales,hue_pal)
6162
importFrom(stats,as.formula)
6263
importFrom(stats,setNames)
6364
importFrom(stats,update)

NEWS.md

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
* fix issue with dcast by making sure all data are preserved.
66

7+
## New features
8+
9+
* Add support to set chart and plot area color and border by Stefan Moog ;
10+
added four new theme arguments chart/plot_background and chart/plot_border,
11+
new theme `theme_ggplot2()`.
12+
13+
14+
715
# mschart 0.4.0
816

917
## New features

R/themes.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@ theme_ggplot2 <- function(x, base_size = 11, base_family = "Arial") {
6363
#'
6464
#' p <- theme_ggplot2(p)
6565
#' p <- chart_fill_ggplot2(p)
66+
#' @importFrom scales hue_pal
6667
chart_fill_ggplot2 <- function(x, stroke = TRUE) {
6768
if (!is.null(x$group)) {
6869
groups <- unique(x$data[[x$group]])
6970
ngroups <- length(groups)
70-
pal <- scales::hue_pal()(ngroups)
71+
pal <- hue_pal()(ngroups)
7172
names(pal) <- groups
7273
} else {
73-
pal <- scales::hue_pal()(1)
74+
pal <- hue_pal()(1)
7475
}
7576

7677
x <- chart_data_fill(x, values = pal)

man/mschart.Rd

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)