Home > Enterprise >  Dynamic Plots Based on One or More Dropdown Values
Dynamic Plots Based on One or More Dropdown Values

Time:01-06

I am trying to make multiple dynamic plots (one does not know how many plots will output) based on one or more selected dropdown value(s) (species in this case).

I did succeed making plots based on the dropdown. For instance, two plots are displayed if a user selected two values/species from the dropdown list, one plot is displayed if one value/species is selected.

Although the number of plots match the number of dropdown values, the plots show a duplicate if two or more dropdown values/species are selected (it only works if exactly one value is selected). Any advice would be of great help.

The below code uses the iris dataset in R.

enter image description here

  •  Tags:  
  • Related