home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / sci / math / stat / 2087 < prev    next >
Encoding:
Internet Message Format  |  1992-10-07  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!waikato.ac.nz!comp.vuw.ac.nz!oconnor
  2. Newsgroups: sci.math.stat
  3. Subject: Re: Help on Boxplotts in S needed!!!!!!!
  4. Message-ID: <BvrnCG.BH2@comp.vuw.ac.nz>
  5. From: oconnor@tahi.isor.vuw.ac.nz (Paul Oconnor)
  6. Date: Wed, 7 Oct 1992 19:26:40 GMT
  7. Sender: news@comp.vuw.ac.nz (News Admin)
  8. References: <1992Oct6.225803.59485@cc.usu.edu>
  9. Organization: Institute of Statistics and Operations Research, VUW, Wellington, NZ
  10. Nntp-Posting-Host: tahi.isor.vuw.ac.nz
  11. Lines: 32
  12.  
  13.  
  14. In article <1992Oct6.225803.59485@cc.usu.edu>, sljbr@cc.usu.edu writes:
  15. |> I have a problem with boxplots on the S.
  16. |> The problem is:
  17. |> I have 5 boxplots to be made. I want all the five to have a common x and y
  18. |> axes. How is this possible??
  19. |> Could anyone help me out??
  20. |> Thanx a lot in advance.
  21.  
  22.  
  23. lets say the data is in a five column matrix called data. Then call 
  24.  
  25. boxplot(split(t(data), i), ylim = c(min(data), max(data)), 
  26.         names = c("name1","2","3","4","5"),
  27.         ylab = "y label", xlab = "x label")
  28.  
  29. If the matrix has the column names then you can let the names
  30. option equal; names = dimnames(data)[2]. This will pop the names in for you.
  31.  
  32. What do you mean by a common x axis?
  33.  
  34. Cheers
  35.  
  36. Paul O'Connor                          Phone: +64 4 472-1000
  37. Institute of Statistics and              FAX: +64 4 495-5118
  38. Operations Research,                   Email: oconnor@isor.vuw.ac.nz
  39. Victoria University of Wellington      Snail: PO Box 600,Wellington,New Zealand
  40. -- 
  41. Paul O'Connor                          Phone: +64 4 472-1000
  42. Institute of Statistics and              FAX: +64 4 495-5118
  43. Operations Research,                   Email: oconnor@isor.vuw.ac.nz
  44. Victoria University of Wellington      Snail: PO Box 600,Wellington,New Zealand
  45.