Skip to content

Boxplot outliers not removed. #2305

Open
@mjdzr

Description

@mjdzr

Hello and thanks a lot for the great package!

I want to delete boxplot outliers as they're duplicates of jitters (but I want to keep the jitters). I have tried to set outlier.[any option] to NA or 0 but still no luck.

Thank you!

library(pacman)
pacman::p_load(dplyr, ggplot2, plotly)


g <- ggplot(chickwts %>% dplyr::filter(feed == "sunflower"),
            aes(x = factor(feed), y = weight, fill = factor(feed))) + 
  geom_boxplot(outlier.shape = NA) + 
  geom_jitter(alpha = 0.5, height = 0)

plot(g)

image

ggplotly(g)

newplot (3)

I apologize if this has been discussed before. Feel free to delete...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions