R

The statistical software preferred by pirates everywhere.

Websites

Helpful code

Plotting the legend outside of the figure plot

par(mar=c(5.1, 4.1, 4.1, 6.1) )

plot(1:10)

legend( par()$usr[2], mean(par()$usr[3:4]), legend=c("Uniform", "Normal"), pch=c(1,2), xpd=TRUE, xjust=0, yjust=0.5)