Skip to content

Instantly share code, notes, and snippets.

View daniel-gerhard's full-sized avatar

Daniel Gerhard daniel-gerhard

  • Christchurch, NZ
View GitHub Profile
@daniel-gerhard
daniel-gerhard / boxplot with eyes
Created June 25, 2013 12:47
Boxplot with eyes
boxplot_eyes <- function(formula, data, col="yellow", boxwex=0.8){
if (boxwex > 1) boxwex <- 1
bw <- boxwex/2
# Ellipsen plot Funktion
eli <- function(r,e){
theta <- seq(0,2*pi,len=1000)
matrix(c(r*cos(theta),e*r*sin(theta)),ncol=2)
}
# Boxplot
bp <- boxplot(formula, data=data, col=col, boxwex=boxwex)