mdthemes icon indicating copy to clipboard operation
mdthemes copied to clipboard

element_blank() triggers error

Open mattysimonson opened this issue 3 years ago • 1 comments

Normally when using ggplot, we can tell omit an axis label using labs(x = element_blank())

However, when we switch from a standard theme to its md_theme equivalent, we get the following error:

mapply(make_inner_box, text, halign, valign, use_markdown, gp_list,  : 
  zero-length inputs cannot be mixed with those of non-zero length

Please either resolve this error, or if it's going to take a long time before it's resolved, create a custom error message that identifies the problem and suggests a workaround. Note that setting the axis label to " " is not ideal since ggplot will still reserve space for the axis label.

Thanks!

mattysimonson avatar May 02 '21 22:05 mattysimonson

I have a similar issue. The following code won´t work: theme(legend.title = element_blank()), The legend title still appears.

danmota83 avatar May 25 '21 15:05 danmota83