Run the following command after creating your plot (at the point where you would
run box()):
> par(c('bty','xpd'))
Then look at the help for par, or post the results back here for us to look at
and have better information on what you problem may be.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of brbell01
> Sent: Wednesday, November 18, 2009 10:16 AM
> To: r-help at r-project.org
> Subject: [R] border/box/frame around plot
>
>
> Hello I need to know how to put a closed frame around my plot. I am
> plotting
> using the igraph package, and I have been able to use box() with
> limited
> success. Box() puts a border around only the upper and right edges of
> the
> plot area, but misses the axes. By default, setting the axes=TRUE in
> igraph
> does not produce closed axes (ie axes that run through the origin and
> up to
> the limits of the plot window). Any ideas?
> --
> View this message in context: http://old.nabble.com/border-box-frame-
> around-plot-tp26410451p26410451.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.