Plots the probability distribution function of a lognormal variable from the mean and standard deviation in either transformed (normal) or untransformed space.
Arguments
- m
A vector of means of the distribution.
- sd
A vector of standard deviations of the distribution.
- label
Name of the variable to be used as x-axis label.
- logtransform
Indicates whether the mean and standard deviation are in lognormal (TRUE) or normal (FALSE) space.
- color
A vector of colors.
Value
A plot of the probability distribution function. Vertical dotted line indicates mean of distribution. This function can plot multiple curves when multiple means and standard deviations are provided.