I'm trying to generate a plot like the one here
<http://dcjones.github.io/Gadfly.jl/geom_density.html>, but instead of using
plot(dataset("ggplot2", "diamonds"), x="Price", color="Cut", Geom.density)
something like
plot(dataset("ggplot2", "diamonds"), x="Price", color="Cut", Geom.ecdf)
is that possible?
Thanks for all the help.
On Monday, July 28, 2014 6:28:40 PM UTC-4, Sam L wrote:
>
> You can use ecdf from StatsBase, which takes an abstract vector and
> returns a function. You can plot that function with Gadfly's function
> plotting <https://github.com/dcjones/Gadfly.jl#functions-and-expressions>
> interface.
>
> For example, to plot the ecdf of 10 uniform [0,1] random variables:
>
> using StatsBase, Gadfly
> plot(ecdf(rand(10)), 0, 1)
>
>
>
> On Monday, July 28, 2014 2:06:37 PM UTC-7, John Myles White wrote:
>>
>> I'm not aware of any such function. Are you talking about the ecdf()
>> function that comes with base R?
>>
>> -- John
>>
>> On Jul 28, 2014, at 2:05 PM, Darf Ferrara <[email protected]> wrote:
>>
>> > I'm looking for something like ecdf() in ggplot2.
>>
>>