Re: [R] Boxplot in order

From: Dennis Murphy <djmuser_at_gmail.com>
Date: Thu, 05 May 2011 10:07:56 -0700

Hi:

Try this:

karla = data.frame(
Groups = factor(rep(c('CPre','SPre','C7','S7','C14','S14','C21','S21'), 11),

                    levels =

c('CPre','SPre','C7','S7','C14','S14','C21','S21')), Time = rep(c(0,7,14,21), 11),
Resp = rnorm(88)
)

boxplot(Resp~Groups, data = karla)

Since you didn't have a variable valor defined, I substituted in random normal deviates.

HTH,
Dennis

On Thu, May 5, 2011 at 7:41 AM, Silvano <silvano_at_uel.br> wrote:
> Hi,
>
> I need construct box plot graph, but I want keep Groups order
>
> karla = data.frame(
> Groups = factor(rep(c('CPre','SPre','C7','S7','C14','S14','C21','S21'),
> 11)),
> Time = rep(c(0,7,14,21), 11),
> Resp = valor
> )
>
> boxplot(Resp~Groups, order=T)
>
> doesn't work.
>
> How do this?
>
> --------------------------------------
> Silvano Cesar da Costa
> Departamento de Estatística
> Universidade Estadual de Londrina
> Fone: 3371-4346
>
> ______________________________________________
> 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.
>



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. Received on Thu 05 May 2011 - 17:10:46 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 May 2011 - 17:20:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive