>>>>> peter dalgaard <pda...@gmail.com>
>>>>>     on Fri, 21 Oct 2016 22:10:22 +0200 writes:

    >> On 21 Oct 2016, at 20:23 , peter dalgaard
    >> <pda...@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.

and if it is not homework, (or even then ;-)  just use
        
  plot(ecdf(x))


Martin Maechler, ETH Zurich

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to