Controlling margins and axes with oma and mgp

January 26, 2009
By

(This article was first published on Programming R, and kindly contributed to R-bloggers)

When creating graphs, we're usually most concerned with what happens near the center of our displays, as this is where most of the important information is generally held. But sometimes, either for aesthetics or clarity, we want to adjust what's outside of the box - in the margins, labels or tick marks. The par() function offers several ways to do this and I'll discuss two that deal primarily with spatial orientation - rather than content - below.

The oma, omd, and omi options

read more

To leave a comment for the author, please follow the link and comment on his blog: Programming R.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: ,

Comments are closed.