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.
input$Categoryis a string, however the
aesexpect a symbol. There are some older answers out there recommending
aes_stringor manually converting the string to a symbol.
However, now the recommended option is to use the
.datapronoun, see the
dplyrdocumentation and mastering shiny book.
In your case, it would be:
If you have better answer, please add a comment about this, thank you!