I need three densities (or smooth histograms) in the same plot. I am using ggplot, each variable has 1000 observations. Hence, the number of times a value can occur is a maximum of 1000 times. Suddenly my code produce extremely high counts for some values.
data <- read.table("mydata.txt", sep=",")
df <- data.frame(data)
df.m <- melt(data, variables=)
ggplot(den.m,aes(x=value, fill=variable)) + geom_density(alpha=0.25)
+ ylab("Counts")
How to attach the data to this question?