[R] SpreadLevelPlot for more than one factor

Ashim Kapoor ashimkapoor at gmail.com
Sun Jan 7 06:07:41 CET 2018

Dear All,

I want a transformation which will make the spread of the response at  all
of  2 factors the same.

See for example :

boxplot(breaks ~ tension * wool, warpbreaks)

The closest I  can do is :

spreadLevelPlot(breaks ~tension , warpbreaks)
spreadLevelPlot(breaks ~ wool , warpbreaks)

I want to do :

spreadLevelPlot(breaks ~tension * wool, warpbreaks)

But I get :

> spreadLevelPlot(breaks ~tension * wool , warpbreaks)
Error in spreadLevelPlot.formula(breaks ~ tension * wool, warpbreaks) :
  right-hand side of model has more than one variable

What is the corresponding appropriate function for 2 factors ?

Many thanks,

	[[alternative HTML version deleted]]

More information about the R-help mailing list