Hi, does anybody know why the following is not working:> hist(rnorm(200)) > box(bty="o")gives me a box without rounded corners. System:> R.Version()$platform [1] "i386-pc-mingw32" $arch [1] "i386" $os [1] "mingw32" $system [1] "i386, mingw32" $status [1] "" $major [1] "2" $minor [1] "0.0" $year [1] "2004" $month [1] "10" $day [1] "04" $language [1] "R" Thanks, Sven
garbade at mip.paed.uni-muenchen.de writes:> Hi, > does anybody know why the following is not working: > > > hist(rnorm(200)) > > box(bty="o") > > gives me a box without rounded corners.Because that isn't what it is supposed to do. Did you expect "7" to give you a slanting right edge? And which letter should represent a full rectangle? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
On Mon, 2004-10-25 at 12:02, garbade at mip.paed.uni-muenchen.de wrote:> Hi, > does anybody know why the following is not working: > > > hist(rnorm(200)) > > box(bty="o") > > gives me a box without rounded corners.You will not get rounded corners with box(). The 'bty' argument determines how many sides of the plot region are drawn using box(). "o" gives you all four sides (1:4) "l" gives you left and lower (2 and 1) "7" gives you upper and right (3:4) "c" gives you all except right (1:2, 3) "u" gives you all except upper (1:2, 4) "]" gives you all except left (1, 3:4) Try this as an example: plot(1:10, axes = FALSE) box(bty = "7") Substitute each of the bty types to review further. HTH, Marc Schwartz