1

I followed the script of agstudy in this page and produced panel of box-plots like this Figure

But the I have a different kind of problem; the ranges of the variables are different. Therefore, plots except for 'moisture' are not properly scaled. How can I force lattice to scale the plots as per their own range? Thanks in advance.

Community
  • 1
  • 1
Harun
  • 19
  • 1
  • 2
  • 2
    Please make your question self-contained. It makes it difficult for people to help you if we have to go around chasing down the code and the data. – MrFlick May 29 '14 at 13:30

1 Answers1

6

With lattice, you can make each panel have it's own scales with the "relation" property. The "free" option lets all of the panels be independent. See ?xyplot for other options.

 bwplot(value~Label |variable,    ## see the powerful conditional formula 
        data=dat.m,
        between=list(y=1),
        main="Bad or Good", scales=list(relation="free"))
MrFlick
  • 195,160
  • 17
  • 277
  • 295