Thanks for sharing the idea, Walmes.

I am also trying to add err bars to the plots. So instead of using plot(), I
use errbar() from Hmisc package. Everything seems to work fine except I
couldn't find the argument to control the color of error bars. If I specify
col='red' in the errbar() it only controls the color of data points and
lines but not for the error bars which are always black. Does anyone know
how to control that? Thanks.

Jun

On Thu, May 26, 2011 at 6:46 PM, Walmes Zeviani <walmeszevi...@gmail.com>wrote:

> Jun,
>
> The par() command is to give extra margin on right side to accomodate the y
> axis label.
> I recognize, like Rolf, that three y axis can be cumbersome, confuse. So, I
> would adopt another approach using lattice::xyplot()
>
> require(reshape)
> x <- melt(x, id="Time")
> str(x)
>
> require(lattice)
> xyplot(value~Time|variable, data=x, layout=c(3,1),
>       type="l", scales=list(y=list(relation="free")))
>
> Walmes.
>
> ==========================================================================
> Walmes Marques Zeviani
> LEG (Laboratório de Estatística e Geoinformação, 25.450418 S, 49.231759 W)
> Departamento de Estatística - Universidade Federal do Paraná
> fone: (+55) 41 3361 3573
> VoIP: (3361 3600) 1053 1173
> e-mail: wal...@ufpr.br
> twitter: @walmeszeviani
> homepage: http://www.leg.ufpr.br/~walmes
> linux user number: 531218
> ==========================================================================
>
>        [[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.
>
>

        [[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