[R] cdf in R give probability of random variable
    peter dalgaard 
    pdalgd at gmail.com
       
    Fri Oct 21 22:10:22 CEST 2016
    
    
  
> On 21 Oct 2016, at 20:23 , peter dalgaard <pdalgd at gmail.com> wrote:
> 
> In both cases it works out nicer if you do
> 
> names(px) <- x
> barplot(px)
> 
Um, unless of course you want the cdf as a step function, in which case check the help page for plot for possible values of the type= argument.
-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com
    
    
More information about the R-help
mailing list