[R] how to plot multiple density functions in one graph

David Winsemius dwinsemius at comcast.net
Mon Jan 4 21:38:05 CET 2010


On Jan 4, 2010, at 3:13 PM, John Westbury wrote:

> Hello,
>
> I am new to R and have two easy questions.
>
> How can you plot multiple density functions in one graph?  I have  
> five beta
> densities that I would like to plot in one graph.  I understand how  
> to plot
> one beta density as a line:
>
> plot (x,(dbeta(x,shape1=,shape2=,), type ="l")

?lines
>
> Does the Pareto distribution need to be added to R with an additional
> package?
>
Sort answer, yes:

I see it in the actuar and the VGAM packages that I have installed,  
but a more complete list of options would be from this search:

RSiteSearch("Pareto")
David Winsemius, MD
Heritage Laboratories
West Hartford, CT



More information about the R-help mailing list