I'm trying to plot the frequency of different hair colors in women with the HairEyeColor dataset.
Example:
library(plotly)
freq <- HairEyeColor[,,2]
plot_ly(x = freq, type = 'bar')
I got the error-message: more elements in the method signature (2) than in the generic signature (1) for function ‘asJSON’