I have a dataset called "alldata", which contains 1000 rows and 2 columns named "day_of_Week" and "label". The dataset look like this :
day_of_Week label
5 Wday, Clicked
2 Wday, Clicked
4 Wday, Clicked
4 Wday, Clicked
2 Wday, Clicked
6 Wday, Clicked
2 Wday, Clicked
2 Wday, Clicked
3 Wday, Clicked
2 Wday, Clicked
I'm using ggplot2 to plot the data,
ggplot(alldata, aes(day_of_Week, fill = label)) + geom_density(alpha = 0.2) + xlim(55, 70)
But, I get this error
Error: Discrete value supplied to continuous scale
I have changed the value about xlim or alpha, but I still get the error. Do you have any idea what's wrong with this code? where is the error from, and how can I make it work?
Thank you
str(alldata)
– jazzurro