mdthemes
mdthemes copied to clipboard
image gallery of mdthemes
Hello,
I was interested in trying your pkg for curiosity for the md_dark_theme
. I normally theme my Rmd with bslib
and thematic
to avoid white background files & plots. Anyway, i tested out the themes and not all of them work and give errors.
for my test i changed some of the intro code
p <- ggplot(mtcars, aes(hp, mpg),
fill= am) +
# had to add color to points as your code returns blank white plots
geom_point(col="purple", size= 3, alpha= 0.5) +
labs(
title = "This is a **bold** title",
subtitle = "And an *italics* subtitle",
x = "**_hp_**",
caption = "<span style = 'color:red'>A red caption</span>" # changed color for better readability
)
p + md_theme_dark() # + ggdark::dark_mode() # i added to see what it would look like
Image Gallery of themes
md_theme_dark

md_theme_brooklyn99()

md_theme_avatar()

theme_calc()

md_theme_cowplot()

md_theme_economist()

md_theme_excel()

md_theme_excel_new()

md_theme_fivethirtyeight()

md_theme_foundation()

md_theme_gdocs()

md_theme_hc()

md_theme_ipsum()

+md_theme_pander()

this is for the error messages I get for some themes
in my Rmd (no bslib
or thematic
running)
p + md_theme_wsj()
returns:
<error/rlang_error>
Only elements of the same class can be merged
Backtrace:
1. (function (x, ...) ...
2. ggplot2:::print.ggplot(x)
4. thematic:::ggplot_build.ggplot(x)
5. thematic:::resolve_theme_inheritance(p$theme)
7. ggplot2:::merge_element.element(new = kid_el, old = parent_el)
<error/rlang_error>
Only elements of the same class can be merged
Backtrace:
█
1. ├─(function (x, ...) ...
2. └─ggplot2:::print.ggplot(x)
3. ├─ggplot2::ggplot_build(x)
4. └─thematic:::ggplot_build.ggplot(x)
5. └─thematic:::resolve_theme_inheritance(p$theme)
6. ├─ggplot2::merge_element(new = kid_el, old = parent_el)
7. └─ggplot2:::merge_element.element(new = kid_el, old = parent_el)
I detached the bslib
and thematic
and re-ran the code but still same error.