This should be enough to show how to do it:
> dta <-
read.table("clipboard",dec=",",row.names=NULL)
> r <- barplot(dta$use,ylim=c(-80,60))
> lines(r,dta$x1,type="b",col="red",pch=20)
> lines(r,dta$x2,type="b",col="blue",pch=21)
>
On 01/10/06, Marko Ekqvist <marko.ekqvist at danpat.fi>
wrote:> Hi,
> I have been some problems with producing bar graph with r. Here is my
> example data (link) and picture but I am not able to do that with r.
> Please any kind of help is welcome
>
> http://www.pasilankaista.com/~ekqvistmt/r/Page001.html
>
> Kind Regards,
> Marko
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
--
================================David Barron
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP