beckamarston / performance-analysis

0 stars 0 forks source link

Errors when creating different grouping to set colour scheme #1

Open beckamarston opened 3 years ago

beckamarston commented 3 years ago

https://github.com/beckamarston/performance-analysis/blob/9cc7849e81df4b62a39c23f4afd737f39145d3d2/3.%20shiny#L68-L69

Error in : Problem with filter() input ..1. x 'match' requires vector arguments

beckamarston commented 3 years ago

It works when directly at the grouping to the code. E.g. p + geom_histogram(aes(color= type)...... But issues when try to make it intereactive. If replace type with input$groups- it will treat 'type' as the variable and not account for different farm types. If use code above it gets confused because of vector issues