1

The following code returns the plot below. Is there a way to remove the standard error gray area or apply alpha to it so it's not so saturated? Especially the case where many lines are plotted this can interfere in the visualization. Thanks!

library(GGally)
library(ggplot2)
ggpairs(swiss[1:3], 
        lower=list(continuous=wrap("smooth", colour="blue")),
        diag=list(continuous=wrap("barDiag", fill="blue")))

enter image description here

Adel
  • 181
  • 2
  • 14

1 Answers1

1

You can put se = F , like in ggplot2::geom_smooth():

library(GGally)
library(ggplot2)
ggpairs(swiss[1:3], 
        lower=list(continuous=wrap("smooth", colour="blue", se = F)),
        diag=list(continuous=wrap("barDiag", fill="blue")))

enter image description here

s__
  • 9,270
  • 3
  • 27
  • 45
  • Thanks. And how about changing the alpha to make it less visible? Is that possible? – Adel Aug 13 '21 at 12:21
  • 1
    You're welcome. AFAIK it should not possible straightforwardly. Probably rewriting a bit the function you can put manually it. If you put alpha with se=T, it's going to be work on the dots. – s__ Aug 13 '21 at 12:38