Maybe this:

library(ggplot2)
library(dplyr)
#Code
dff %>% filter(Variable1=='N') %>%
  ggplot(aes(x=factor(Variable2),y=value))+
  geom_boxplot()

Output:

enter image description here

Or this:

#Code 2
dff %>%
  ggplot(aes(x=factor(Variable2),y=value))+
  geom_boxplot()

Output:

enter image description here

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top