I have 17 vectors containing counts, the length of these vectors range from 2000 to 7000 in length. I searched the internet for how to plot multi-histograms and I read in some places that it's possible to do it by forming a matrix, so I merged the vectors using rbind. I saw methods incorporating ggplot like: ggplot(df, aes(x=count,group=year,fill=as.factor(year)))
But, I think that these examples had equal length, so I'm wondering if it is possible to plot multiple vectors on the same grid in terms of density despite them each having different lengths? And whether I can arbitrarily approximate the x-axis (counts) and y-axis (density)?