Skip to content

Commit

Permalink
In plotBins() medianColor=NULL disables median
Browse files Browse the repository at this point in the history
  • Loading branch information
b4winckler committed May 14, 2012
1 parent b5d1d93 commit 64282ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/bapp.R
Expand Up @@ -56,7 +56,8 @@ plotBins <- function(x, y,
polygon(c(qx,rev(qx)), c(qm[2,],rev(qm[4,])), col=quartileColor)

# Draw line on median
lines(qx, qm[3,], col=medianColor, lw=3)
if (!is.null(medianColor))
lines(qx, qm[3,], col=medianColor, lw=3)
}

bins <- function(x, n=5)
Expand Down

0 comments on commit 64282ee

Please sign in to comment.