Skip to content

boxplot a list of objects

1 message · Lefebure Tristan

#
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 !