# NOT RUN {
x <- rnorm(1000, mean = 0.5, sd = 0.5)
y <- rnorm(750, mean = -0.5, sd = 0.75)
# }
# NOT RUN {
plt <- PDEplot(x, color = "red")$ggPlot
plt <- PDEplot(y, color = "blue", ggPlot = plt)$ggPlot
# }
# NOT RUN {
# Second Example
# ggplotObj=ggplot()
# for(i in 1:length(Variables))
# ggplotObj=PDEplot(Data[,i],ggPlot = ggplotObj)$ggPlot
# }
Run the code above in your browser using DataLab