ggpol icon indicating copy to clipboard operation
ggpol copied to clipboard

remove outliers without filtering out

Open akhst7 opened this issue 4 years ago • 2 comments

I'd like to remove outliers from a box jitter plot. I tried outlier.color =NA, outlier.alpla=0, and outlier.fill=NA but none of these alone or in comb did not work. Is there a way to remove outliners from the box jitter plot without manipulating the original df in question ?

Thanks.

akhst7 avatar Mar 01 '21 19:03 akhst7

Hi, thanks for pointing out this issue. Could you share some data to reproduce the problem? For me, setting outlier.color = NA seems to work, but it might also depend on the shape you're using

erocoar avatar Mar 06 '21 12:03 erocoar

Hi Frederick,

I tried with or without Jitter.shjape but I am still getting out line points.

If I do;

> ggplot(tmp, aes(x =Cluster, y = mean.scaled.GlcCer.total)) +
+ geom_boxjitter( jitter.color = NA, outlier.color = "black, errorbar.draw = TRUE, errorbar.length = 0.2, notch = T) 

I do see only outlier dots, but If I do the opposite;

> ggplot(tmp, aes(x =Cluster, y = mean.scaled.GlcCer.total)) +
+ geom_boxjitter( jitter.color = "black", outlier.color = NA, errorbar.draw = TRUE, errorbar.length = 0.2, notch = T) 

I still see the outliers.

Attached is the data file in question.

Thanks for helping.

On Mar 6, 2021, at 7:22 AM, Frederik Tiedemann [email protected] wrote:

Hi, thanks for pointing out this issue. Could you share some data to reproduce the problem? For me, setting outlier.color = NA seems to work, but it might also depend on the shape you're using

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/erocoar/ggpol/issues/11#issuecomment-791928198, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXO5VZBZNVZJE7SFLBPLJTTCINCBANCNFSM4YNEXRKA.

akhst7 avatar Mar 08 '21 17:03 akhst7