How to create a highcharter event function to create a “dropdown function” in Shiny R
问题 I'm building a shiny app and one of the things I want to accomplish is to create a dropdown menu. I want to plot the labour variable as a function of the year variable for the different levels. See below for a sample dataframe: year level_2 level_3 labour 1 2013 10 101 1 2 2014 10 101 5 3 2015 10 101 10 4 2016 10 101 20 5 2017 10 101 25 6 2013 11 111 5 7 2014 11 111 10 8 2015 11 111 20 9 2016 11 111 25 10 2017 11 111 30 11 2013 10 102 2 12 2014 10 102 6 13 2015 10 102 11 14 2016 10 102 21 15