[R] defining and plotting functions thanks to equation
Spencer Graves
spencer.graves at pdf.com
Wed Jul 30 13:47:58 CEST 2003
Also:
plot(function(x)exp(-exp(-x)),0,10)
Since I also use S-Plus 6.1, I tried both Jason's solution and the above
there; both failed. The following worked
x <- seq(0, 10, length=101)
plot(x, exp(-exp(-x)), type="l")
hope this helps. spencer graves
Jason Turner wrote:
> vincent.stoliaroff at sgcib.com wrote:
>
>> Are there any means to define and plot a function given the equation that
>> specifies the function?
>>
>> For example I'd like to plot and work with the Gumbel Distribution
>> density
>> defined by
>> Lambda(x)=exp(-exp(-x))
>
>
> Like this?
>
> curve(exp(-exp(-x)),0,10,101)
>
> Cheers
>
> Jason
More information about the R-help
mailing list