Skip to content

facets was deprecated in ggplot2 2.2.0 and is now defunct #160

@jaymoore-research

Description

@jaymoore-research

Checklist

  • I am able to reproduce the bug with the latest version
  • I checked, but didn't find any duplicates (open OR closed) of this issue in the repo

Affected version

2.0.15

Steps to reproduce the bug

library(MAGMA.Celltyping)
MAGMA_results <- MAGMA.Celltyping::enrichment_results
merged_results <- MAGMA.Celltyping::merge_results(MAGMA_results = MAGMA_results)
heat <- MAGMA.Celltyping::results_heatmap(merged_results = merged_results, fdr_thresh = 1)

Actual behavior

14 results @ FDR < 1
Error:
! The `facets` argument of `facet_grid()` was deprecated in ggplot2 2.2.0 and is now defunct.Please use the `rows` argument instead.
Run `rlang::last_trace()` to see where the error occurred.
Warning message:
`aes_string()` was deprecated in ggplot2 3.0.0.Please use tidy evaluation idioms with `aes()`.See also `vignette("ggplot2-in-packages")` for more information.The deprecated feature was likely used in the MAGMA.Celltyping package.
  Please report the issue at <https://github.com/neurogenomics/MAGMA_Celltyping/issues>.
This warning is displayed once per session.
Call warnings()�lifecycle::last_lifecycle_warnings() to see where this warning was generated. 

Expected behavior

Generate a heatmap as shown in vignette: https://neurogenomics.github.io/MAGMA_Celltyping/articles/MAGMA.Celltyping.html#heatmap

Session info

R version 4.5.1 (2025-06-13)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 22.04.5 LTS

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions