Dropdown Filter Example

dropdown_to_filter(flower)

Arguments

flower

value in unique(iris$Species)

Value

ggplot object

Examples

dropdown_to_filter("setosa")
# Code dropdown_to_filter
#> function(flower) { #> subiris <- iris[iris$Species == flower, ] #> ggplot(subiris, aes(x = Sepal.Length, y = Petal.Length)) + #> geom_point(color = "#F00000") + #> ggtitle(paste("Sepals and Petals of Species ", flower)) #> } #> <environment: namespace:SepalsAndPetals>