I tried to draw a log-normal density function by generating random numbers in R. However, the function is not working how I think it should. I draw two similar distribution using two different sample size.
plot(density(rlnorm(1000000,meanlog = -1.43, sdlog = 0.7))) plot(density(rlnorm(100000000,meanlog = -1.43, sdlog = 0.7)))
Am I getting something wrong? I thought that these two density function should be nearly similar.
I draw the density function also in excel. I think this should be the correct distribution. Is there some error in R-function?