Skip to content

Instantly share code, notes, and snippets.

@nievergeltlab
Created June 2, 2017 19:19
Show Gist options
  • Select an option

  • Save nievergeltlab/f58f17008640283a1bcfd5e38f43319a to your computer and use it in GitHub Desktop.

Select an option

Save nievergeltlab/f58f17008640283a1bcfd5e38f43319a to your computer and use it in GitHub Desktop.
R Margin Padding With a big font, R will cut off the end of the Y axis label text. This puts padding on the margin to give space for the big text.
pdf('h2_mf_perstudy.pdf',7,7)
par(mar=c(5, 4, 4, 2) + 0.5)
plot(dat$case,dat$SE,cex.axis=1.45,cex.lab=1.5,xlab="N Cases", ylab="Standard Error of SNP Based Heritability",main="",cex=1.5,pch=19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment