[R] two question about plot

Petr PIKAL petr.pikal at precheza.cz
Fri Sep 2 08:39:32 CEST 2011


Hi
> 
> Re: [R] two question about plot
> 
> The help for boxplot offers suggestions for both those things. You may 
be
> particularly interested in:
> 
>    names: group labels which will be printed under each boxplot.  Can
>           be a character vector or an expression (see plotmath).
> 
>     add: logical, if true _add_ boxplot to current plot.
> 
> Sarah

It could be also worth to consult also bwplot from lattice or especially 
ggplot2 package for plotting.

Regards
Petr



> 
> 
> On Thu, Sep 1, 2011 at 1:31 PM, Jie TANG <totangjie at gmail.com> wrote:
> > 1) how to modify the the tickment of x-axis or y-axis.
> >   boxplot(data[,1:5])
> >  the tickment in x-axis in V1 V2 V3 V4 V5 ,I want to be some name for
> > example
> >  name<-c("1day","2day","3day","4day","5day")
> >
> > 2) how to overlap two plot into one figure?
> >  plot(data[1:5])
> >  boxplot(newdata[,1:5])
> > ?
> >
> > --
> > TANG Jie
> >
> 
> 
> 
> -- 
> Sarah Goslee
> http://www.functionaldiversity.org
> 
> ______________________________________________
> 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