Hi Olga,

may be you can work around with the suggestions below, while other
provide the best solution for your:

barplot(c(1,2,3,5,2,3,1),names.arg=c("100","200","300","400","500","600","700"),
 xlab="diameter",ylab="flow",main="some title",space=0.1)
lines(lowess(c(1,2,3,5,2,3,1),f=1), type="b", lwd=2, lty=3, col="blue")
cheers

milton

On Sun, Mar 14, 2010 at 5:32 PM, Olga Lyashevska <o...@herenstraat.nl>wrote:

> Dear all,
>
> I am making a barplot as following:
>
> barplot(c(1,2,3,5,2,3,1),names.arg=c("100","200","300","400","500","600","700"),xlab="diameter",ylab="flow",main="some
> title",space=0.1)
>
> I am also trying to add a probability density curve, however using
> lines(density(c(1,2,3,5,2,3,1))) does not give a desired result.
>
> Any tips?
> Thanks
>
> Olga
>
> ______________________________________________
> R-help@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<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to