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

element_blank() triggers error #6

Open
mattysimonson opened this issue May 2, 2021 · 1 comment
Open

element_blank() triggers error #6

mattysimonson opened this issue May 2, 2021 · 1 comment

Comments

@mattysimonson
Copy link

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!

@danmota83
Copy link

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

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