Ryan's Blog

R plot magic

Posted in Uncategorized by ryanlayer on January 12, 2012

To move the axis labels/lines:

par(mpg=c(, , ))

default is mpg=c(3,1,0), but mgp=c(1.75, 0.5, 0) works

To move margins:

par(mar=c(,,,))

default is mar=c(5,4,4,2)+0.1, but mar=c(3,3,0,0)+0.1 works

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: