Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when specifying a theme in ggtexttable it no longer accepts any customisation #283

Closed
Erinaceida opened this issue May 25, 2020 · 3 comments

Comments

@Erinaceida
Copy link

Hi,

When creating a table using ggtexttable and specifying a theme, any further modifications to the table, such as size, colour are ignored. This wouldn't be an issue if there was an easy way to reproduce the themes by writing my own theme, however, I found it impossible to replicate the lines of the "minimal" theme.
ggtexttable(results, rows = NULL, theme = ttheme(padding = unit(c(4, 20), "mm"), tbody.style = tbody_style(fill = "white", size = 7, linecolor = "black"), colnames.style = colnames_style(fill = "white", size = 10, color = "red")))
image

ggtexttable(results, rows = NULL, theme = ttheme("minimal", padding = unit(c(4, 20), "mm"), tbody.style = tbody_style(fill = "white", size = 7, linecolor = "black"), colnames.style = colnames_style(fill = "white", size = 10, color = "red")))

image

Regards,
Tom

@kassambara
Copy link
Owner

Bug fixed now, thanks!

suppressPackageStartupMessages(library("ggpubr"))

ggtexttable(
  head(iris), rows = NULL, 
  theme = ttheme("minimal", padding = unit(c(4, 4), "mm"), 
                 tbody.style = tbody_style(fill = "white", size = 7, linecolor = "black"), 
                 colnames.style = colnames_style(fill = "white", size = 10, color = "red")
                 )
  )

Created on 2020-06-09 by the reprex package (v0.3.0.9001)

@Erinaceida
Copy link
Author

Erinaceida commented Jun 15, 2020 via email

@kassambara
Copy link
Owner

Make sure you have installed the latest dev version on github: devtools::install_github("kassambara/ggpubr")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants