I get an error "'data' must be a [34m<data.frame>[39m, or an object coercible by 'fortify()", not a double vector.
I am trying to provide a slider input from 2 to 50 that is the number of values generated by a random number generator that will then be plotted as a histogram. I thought this would be a simple task.
Hello, I believe the issue is data1 needs to be a data frame, to be used in ggplot. Also, instead of aes(x=data1), try setting x in aes to the column name containing the random values in the data frame.