An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090823/23417354/attachment-0001.pl>
draw two density functions at one graph
2 messages · sendona essile, Jim Lemon
sendona essile wrote:
I want to draw two density functions on the same graph. One of the densities is produced by density() and the other one is produced by logspline() . I want to show one of them by solid line and the other one by dashed line, but both of them on one graph. Sorry if this is plane and trivial, I don't know with what keyword I should search to find the answer.
Hi sendona, Use "plot" for the first one and "lines" with lwd=2 for the second. Jim