[R] boxplot a list of objects
Lefebure Tristan
Tristan.Lefebure at univ-lyon1.fr
Wed Jul 7 11:40:13 CEST 2004
thanks a lot !
an other simple solution proposed by Stefano Guazzetti is :
boxplot(list(a, b, c))
(ok I will never use again a function name for an object name)
On Wednesday 07 July 2004 10:48, "Unternährer Thomas, uth" wrote:
> One possibility ist
>
> boxplot(sapply(ListOfNames, get, env = .GlobalEnv))
>
> Hope that this helps
>
> Thomas
>
>
> -----Ursprüngliche Nachricht-----
> Von: Lefebure Tristan [mailto:Tristan.Lefebure at univ-lyon1.fr]
> Gesendet: Mittwoch, 7. Juli 2004 10:34
> An: r-help at stat.math.ethz.ch
> Betreff: [R] boxplot a list of objects
>
>
> Hi list,
>
> #Imagine we have vectors of different length (in practice 100 vectors):
> a<-c(1:10)
> b<-c(1:20)
> c<-c(1:30)
>
> #then we got a list of the names of those objects:
>
> list<-c("a","b","c")
>
> #I don't find how to boxplot them using a less stupid way than :
>
> boxplot(get(list[1]),get(list[2]),get(list[3]))
>
>
> Thanks for any advice !
--
------------------------------------------------------------
Tristan LEFEBURE
Laboratoire d'écologie des hydrosystèmes fluviaux (UMR 5023)
Université Lyon I - Campus de la Doua
6 rue Dubois 69622 Villeurbanne - France
Phone: (33) (0)4 72 43 29 45
Fax: (33) (0)4 72 43 15 23
More information about the R-help
mailing list