Using ggplot, I could create my desired plot. However, when I converted to plotly (the code below), I got an error:
Error in renderPlotly({ : unused argument (height = function() {
400 + (length(workforce_data()[["County.y"]]) * 5)
}).
How can I fix this?
plotly code
output$workforce_plot <- renderPlotly ({
workforce_plot()
} , height = function() {400 + (length(workforce_data()[["County.y"]]) *5) })