boxplot(as.formula(formulaText()),
data = df,
outline = input$outliers)
By selecting outline = true/false
, outliers can be shown interactively in r shiny:
p<- ggplot(df, aes_string(x=input$variable1, y=input$variable)) +
geom_boxplot() + coord_flip()
print(p)
Is there a flag or work around to achieve the same in the ggplot2 package?