Try this:

matplot(matrix(1:length(d), NCOL(d), byrow = TRUE), t(d), type = 'h', lty =
1, lwd = 2)

On Tue, Sep 8, 2009 at 11:44 AM, Rafael Moral
<rafa_moral2004@yahoo.com.br>wrote:

> Dear useRs,
>
> I want to plot the following barplot with lines instead of bars. Is there a
> way?
>
> data <- data.frame(cbind(k = 0:3, fk = c(11, 20,7,2), f0k = c(13.72, 17.64,
> 7.56, 1.08), fkest = c(11.85, 17.78, 8.89, 1.48)))
> d <- t(data[,2:4])
> barplot(d, beside=TRUE)
>
> Regards,
> Rafael.
>
>
>
>  ____________________________________________________________________________________
> [[elided Yahoo spam]]
>
>        [[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.
>
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]


