How can I plot 2 density plots in one output. Here are my codes for the density plot.
#Density Plot
d <- density(dataS)
plot(d, main= "Density plots of Revenue")
o <- density(RemoveOutlier)
plot(o, main= "Density plots of Revenue excluding outliers")
So basically I want to see both plots on one output. And maybe change the color line of each plot and a legend on the top right. Attached is the picture of the 2 plots in R.
image 1
image 2