I'm trying to plot density plots for the asymmetric Laplace distribution onto one single plot.
I have defined the two densities, one for the asymmetry parameter = 0.5 and another for the parameter = 0.25.
My plot statement plots one graph correctly.
I would like to put both onto the same graph, and maybe a third one as well?
library(ald)
sseq = seq(-8,8,0.01)
dens = dALD(y=sseq,mu=0,sigma=1,p=0.25)
dens2= dALD(y=sseq,mu=0,sigma=1,p=0.5)
plot(sseq,dens,type="l",lwd=2,col="red",xlab="u",ylab=parse(text="f[p](u)"), main="ALD Density function")
legend("topright", legend=c("ALD for p=0.5"),lty=c(1),
lwd=c(1),col=c("red"),title="Values for different quantiles:")