Skip to content

Commit

Permalink
reset themes in gallery examples
Browse files Browse the repository at this point in the history
  • Loading branch information
grantmcdermott committed Feb 16, 2025
1 parent ad41e63 commit cfd5059
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 5 deletions.
4 changes: 3 additions & 1 deletion vignettes/gallery_figs/gallery_05.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ tinytheme("ipsum")
tinyplot(Sepal.Width ~ Petal.Width | Species,
data = iris,
type = "lm")
tinyplot_add(type = "p", alpha = .2)
tinyplot_add(type = "p", alpha = .2)

tinytheme() # reset theme (optional)
5 changes: 4 additions & 1 deletion vignettes/gallery_figs/gallery_06.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ with(
x = term, y = est, ymin = lwr, ymax = upr,
type = type_errorbar(length = 0.1)
)
)
)


tinytheme() # reset theme (optional)
2 changes: 2 additions & 0 deletions vignettes/gallery_figs/gallery_07.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ tinyplot(
type = "rect",
palette = "viridis"
)

tinytheme() # reset theme (optional)
2 changes: 2 additions & 0 deletions vignettes/gallery_figs/gallery_08.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ tinyplot(Month ~ Temp | Temp,
data = aq,
type = type_ridge(col = "white")
)

tinytheme() # reset theme (optional)
1 change: 0 additions & 1 deletion vignettes/gallery_figs/gallery_09.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
library("tinyplot")
tinytheme()
tinyplot(eruptions ~ waiting, data = faithful, type = "lm")
tinyplot_add(type = type_rug(jitter = TRUE, amount = 0.3))
tinyplot_add(type = type_rug(jitter = TRUE, amount = 0.1, side = 2))
Expand Down
4 changes: 3 additions & 1 deletion vignettes/gallery_figs/gallery_10.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ tinyplot(
~Petal.Width | Species,
type = "histogram",
data = iris
)
)

tinytheme() # reset theme (optional)
4 changes: 3 additions & 1 deletion vignettes/gallery_figs/gallery_11.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ tinyplot(
len ~ dose | supp, data = ToothGrowth, lty = 1,
flip = TRUE,
type = type_boxplot(boxwex = 0.6, staplewex = 0, outline = FALSE)
)
)

tinytheme() # reset theme (optional)

0 comments on commit cfd5059

Please sign in to comment.