Skip to content

Commit

Permalink
passing font.family to ggtext #149
Browse files Browse the repository at this point in the history
  • Loading branch information
kassambara committed Jun 6, 2020
1 parent a6d26af commit 9b46cb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

## Bug fixes

- the argument `font.family` is now correctly handled by `ggscatter()` (#149)
- `ggpar()` arguments are correctly applied using `ggpie()` (#277).
- `ggscatter()`: When `conf.int = FALSE`, fill color is set to "lightgray" for the regression line confidence band ([@zhan6073, #111](https://github.com/kassambara/ggpubr/issues/111)).
- Now, `gghistogram()` supports the paramter `yticks.by` ([@Chitanda-Satou, #258](https://github.com/kassambara/ggpubr/issues/258)).
Expand Down
4 changes: 2 additions & 2 deletions R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ p
add = "none", add.params = list(),
label = NULL, font.label = list(size = 11, color = "black"),
label.select = NULL, repel = FALSE, label.rectangle = FALSE,
parse = FALSE,
font.family = "", parse = FALSE,
ggtheme = theme_pubr(),
fun_name = "", group = 1, # used only by ggline
show.legend.text = NA,
Expand Down Expand Up @@ -977,7 +977,7 @@ p
.add_item(data = data, x = opts$x, y = opts$y,
label = label, label.select = label.select,
repel = repel, label.rectangle = label.rectangle,
parse = parse,
family = font.family, parse = parse,
ggtheme = NULL,
grouping.vars = grouping.vars, facet.by = facet.by, position = geom.text.position,
show.legend = show.legend.text)
Expand Down

0 comments on commit 9b46cb9

Please sign in to comment.