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

Margins Error #121

Closed
GrandValleyTutor opened this issue Aug 16, 2023 · 1 comment
Closed

Margins Error #121

GrandValleyTutor opened this issue Aug 16, 2023 · 1 comment

Comments

@GrandValleyTutor
Copy link

This package looks great!

facet_nested and facet_grid with margins = TRUE gives the following message:

Error in unrowname():
! Can only remove rownames from <data.frame> and objects.

Backtrace:

  1. ├─base (local) <fn>(x)
  2. └─ggplot2:::print.ggplot(x)
  3. ├─ggplot2::ggplot_build(x)
  4. └─ggplot2:::ggplot_build.ggplot(x)
  5. └─layout$setup(data, plot$data, plot$plot_env)
    
  6.   └─ggplot2 (local) setup(..., self = self)
    
  7.     └─self$facet$compute_layout(data, self$facet_params)
    
  8.       └─ggh4x (local) compute_layout(..., self = self)
    
  9.         └─ggh4x:::reshape_add_margins(...)
    
  10.           └─ggh4x:::unrowname(lapply(df[vars], add_all))
    
  11.             └─cli::cli_abort(...)
    
  12.               └─rlang::abort(...)
    
@teunbrand
Copy link
Owner

Thanks for the report! Can confirm this is buggy.

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