Question:
I have a data frame which consist of multiple categories and month. Each row is 1 interaction by the participant so I want to show by the month and the different categories their interaction count throughout the year through a heatmap. A total of 4.9 million rows which means there is a total of 4.9million interactions throughout the year.I tried to use an input to indicate the column name and tried to reactively change the X axis but it does not seem to work.
Answer:
input$Category
is a string, however the dplyr
verbs and aes
expect a symbol. There are some older answers out there recommending aes_string
or manually converting the string to a symbol.However, now the recommended option is to use the
.data
pronoun, see the dplyr
documentation and mastering shiny book.In your case, it would be:
If you have better answer, please add a comment about this, thank you!