I have this df that is visualized as followed:
df = data.frame(x = -10:11,
                y = seq(-5,5.5,by=0.5),
                z = rep(c(1,2),11) )
df
ggplot(df)+aes(x=x,y=y,color=factor(z),alpha=z)+
  geom_point()+
  geom_hline(yintercept=0)+
  geom_vline(xintercept = 0)+
  theme_blank()
I checked all similar questions but nothing has worked out to remove the alpha legend. Thanks.

 
     
    