Is there a way of doing this? I'm using plot() to produce a scatter of my data, but it routinely defaults to plotting 2 sets of x axes and 2 y axes. I'd like to not plot the upper and rightmost axes. I can use 'axes=F', and then manually add axes with 'axis', but then the newly created axes do not intercept. TIA, Dan
Cou could add a box if i understand the problem correctly box() -----Urspr?ngliche Nachricht----- Von: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Im Auftrag von Dan Edgcumbe Gesendet: Donnerstag, 6. Mai 2010 10:54 An: r-help at r-project.org Betreff: [R] Supressing axes 3 and 4 when using plot() Is there a way of doing this? I'm using plot() to produce a scatter of my data, but it routinely defaults to plotting 2 sets of x axes and 2 y axes. I'd like to not plot the upper and rightmost axes. I can use 'axes=F', and then manually add axes with 'axis', but then the newly created axes do not intercept. TIA, Dan ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Dan Edgcumbe wrote:> Is there a way of doing this? I'm using plot() to produce a scatter of > my data, but it routinely defaults to plotting 2 sets of x axes and 2 > y axes. I'd like to not plot the upper and rightmost axes. I can use > 'axes=F', and then manually add axes with 'axis', but then the newly > created axes do not intercept. >Use bty="L", e.g. plot(1, bty="L") See ?par for other possible values. Duncan Murdoch
On 05/06/2010 06:54 PM, Dan Edgcumbe wrote:> Is there a way of doing this? I'm using plot() to produce a scatter of > my data, but it routinely defaults to plotting 2 sets of x axes and 2 > y axes. I'd like to not plot the upper and rightmost axes. I can use > 'axes=F', and then manually add axes with 'axis', but then the newly > created axes do not intercept. >Hi Dan, You may find the the fullaxis function in the plotrix package does what you want. Jim
Possibly Parallel Threads
- lattice: axes drawn when relation='free' or relation='sliced' but not when relation='same'
- Axis positions
- How do I exactly align the right hand side of "mtext" relative to a plot device? Beyond "adj".
- graph shading is overlaying axes
- Axes origins and labeling