Skip to content
Prev 323376 / 398503 Next

boxplot with grouped variables

You can't mix number and character data in a data frame column, so you will probably find that all your variables are factors, not numbers. Try, for example
class(Daten$V2)

It looks like you failed to specify 'header=TRUE' in a read.table statement. Reread the data with headers properly treated so that those first items become the variable names.

In additon, Daten$V2[Daten$V3=="m"]) will only give you data for rows in which V3=="m", which will be a single boxplot. (see ?"[" for what that subsetting operation does). To plot all combinations ( if V2 were correctly numeric) you could try
boxplot(V2~V1+V3, data=Daten)

S Ellison