Axes Not Displaying in mixOmics::plotArrow with ggplot2 3.5.2

In ggplot2 v3.5.2 (R 4.3.2) , the following code creates an empty plot but fails to display x/y axes even with explicit theme settings. This worked in ggplot2 v3.4.2 :

# Minimal example with empty plot (axes missing in v3.5.2)  
ggplot() +  
  theme(  
    axis.line.x.bottom = element_line(linewidth = 1, color = "black"),  
    axis.line.y.left = element_line(linewidth = 1, color = "black")  
  )  

When using mixOmics::plotArrow , similar issues occur. The following fixes do NOT work :

# Attempt 1: Expand axis limits  
p + expand_limits(x = c(-5, 5), y = c(-5, 5))  # No axes rendered  

# Attempt 2: Override theme  
p + theme(  
  axis.line = element_line(),  
  panel.border = element_blank()  
) 

mixOmics::plotArrow internally uses theme_classic(), but overriding theme settings externally (as shown) has no effect.

Thank you for any guidance!

this works for me:

p <- ggplot() +  
  theme(  
    axis.line.x.bottom = element_line(linewidth = 1, color = "black"),  
    axis.line.y.left = element_line(linewidth = 1, color = "black")  
  )  
p + 
  scale_x_continuous(limits = c(-5, 5))+
  scale_y_continuous(limits = c(0, 1))