Skip to content

Commit 1c70c34

Browse files
docs: replace removed ggscatterstats args in vignette examples
Co-authored-by: IndrajeetPatil <11330453+IndrajeetPatil@users.noreply.github.com>
1 parent 1878073 commit 1c70c34

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

vignettes/web_only/ggscatterstats.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ ggscatterstats(
8383
label.var = title, ## variable to use for labeling data points
8484
label.expression = rating < 5 & budget > 100, ## expression for deciding which points to label
8585
point.label.args = list(alpha = 0.7, size = 4, color = "grey50"),
86-
xfill = "#CC79A7", ## fill for marginals on the x-axis
87-
yfill = "#009E73", ## fill for marginals on the y-axis
86+
xsidehistogram.args = list(fill = "#CC79A7"), ## fill for marginals on the x-axis
87+
ysidehistogram.args = list(fill = "#009E73"), ## fill for marginals on the y-axis
8888
title = "Relationship between movie budget and IMDB rating",
8989
caption = "Source: www.imdb.com"
9090
)

vignettes/web_only/purrr_examples.Rmd

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,16 @@ plot_list <- purrr::pmap(
272272
quote(rating > 8 & budget < 10)
273273
),
274274
type = list("r", "np", "bf"),
275-
xfill = list("#009E73", "#999999", "#0072B2"),
276-
yfill = list("#CC79A7", "#F0E442", "#D55E00"),
275+
xsidehistogram.args = list(
276+
list(fill = "#009E73"),
277+
list(fill = "#999999"),
278+
list(fill = "#0072B2")
279+
),
280+
ysidehistogram.args = list(
281+
list(fill = "#CC79A7"),
282+
list(fill = "#F0E442"),
283+
list(fill = "#D55E00")
284+
),
277285
ggtheme = list(
278286
ggthemes::theme_tufte(),
279287
ggplot2::theme_classic(),

0 commit comments

Comments
 (0)