# Error: \<ggplot2::labels\> object is invalid:

**URL:** <https://forum.biobakery.org/t/error-ggplot2-labels-object-is-invalid/8680>\
**Category:** MaAsLin\
**Created:** [December 16, 2025, 12:39pm UTC](https://forum.biobakery.org/t/error-ggplot2-labels-object-is-invalid/8680 "2025-12-16T12:39:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpakalapati](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@tpakalapati](https://forum.biobakery.org/u/tpakalapati)\
**Post date:** [December 16, 2025, 12:39pm UTC](https://forum.biobakery.org/t/error-ggplot2-labels-object-is-invalid/8680/1 "2025-12-16T12:39:38Z")

</div>

Hi,

When running the MaAsLin on virome data, I get below error. Can you please provide any leads to understand the cause of error?

```auto
Error: <ggplot2::labels> object is invalid:
- every label must be named.
In addition: Warning messages:
1: The `size` argument of `element_line()` is deprecated as of ggplot2 3.4.0.
ℹ Please use the `linewidth` argument instead.
ℹ The deprecated feature was likely used in the Maaslin2 package.
  Please report the issue at <https://github.com/biobakery/maaslin2/issues>.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated. 
2: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
ℹ Please use `linewidth` instead.
ℹ The deprecated feature was likely used in the Maaslin2 package.
  Please report the issue at <https://github.com/biobakery/maaslin2/issues>.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated. 

```

Thank you,

Tata

---

<div class="post-metadata">

**Author:** ![tkuntz-hsph](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/tkuntz-hsph/32/492_2.png) [@tkuntz-hsph](https://forum.biobakery.org/u/tkuntz-hsph)\
**Post date:** [December 16, 2025, 3:58pm UTC](https://forum.biobakery.org/t/error-ggplot2-labels-object-is-invalid/8680/2 "2025-12-16T15:58:40Z")

</div>

Hi Tata,

Thanks for reporting this. I’ve made a change on github that I think will fix it. Can you try installing from github with the R code below to see if it works? Thanks!

install.packages(“devtools”)  
library(“devtools”)  
install\_github(“biobakery/Maaslin2”)
