I am trying to plot 5 variables. however, I only see one colour. I am not really sure how can I display different colour for each variable
my data looks like
> data
Lead_1 Lead_2 Lead_3 Lead_4 Lead_5
1 138 135 128 125 130
2 126 130 133 131 128
3 120 121 126 130 129
4 129 126 121 115 110
5 142 153 160 167 179
6 305 299 294 291 283
dim(data)
[1] 8517 5
data <- read.table("5leads.csv", header=TRUE, sep=",")
data
dat <- stack(data)
ggplot(dat, aes(x = values, fill = ind)) + geom_density(alpha = 0.25)