[R] histogram without bars but with density line
Yihui Xie
xieyihui at gmail.com
Thu Oct 16 17:12:45 CEST 2008
plot(density(x))
Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
Mobile: +86-15810805877
Homepage: http://www.yihui.name
School of Statistics, Room 1037, Mingde Main Building,
Renmin University of China, Beijing, 100872, China
On Thu, Oct 16, 2008 at 10:54 PM, Jörg Groß <joerg at licht-malerei.de> wrote:
> Hi,
>
> I know how to plot an histogram and how to add a density line.
> But how can I plot only the density line without the bars?
>
> Is there a way to say the hist() function not to plot bars, but a density
> line instead?
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>
More information about the R-help
mailing list