TarJae
TarJae

Reputation: 79184

How to increase font size of bar labels in sjPlot package

With the plot_xtab() function from sjPlot package I can plot percentages of gear inside of every cyl as stacked bar plots:

library(sjPlot)

plot_xtab(
  x = mtcars$gear,
  grp = mtcars$cyl,
  margin = "row",
  bar.pos = "stack",
  show.summary = TRUE,
  coord.flip = TRUE
)

How can I increase the font size within the plots inside sjPlot package?

I know that I can make this plot with ggplot2 and I know that sjPlot uses ggplot2 under the hood.

I have tried:

theme_set(theme_gray(base_size = 20))

Upvotes: 0

Views: 41

Answers (0)

Related Questions