Permalink
Browse files

Produce both boxplot and violin plots

If violin plots could be made equal width, they would probably suffice but that won't be the case until the next version of ggplot
  • Loading branch information...
jiho committed May 14, 2012
1 parent c72c5fb commit fa70967d53eb31372a3edba5046e10103fae08e6
Showing with 2 additions and 3 deletions.
  1. +2 −3 library/lib_bioreg.R
View
@@ -279,9 +279,8 @@ bioreg <- function(variables, n.groups=12, lat.min=-80, lat.max=-30, lat.step=0.
if (!output) devAskNewPage(TRUE)
# plot of variables distributions within each cluster
- variablesPlot <- plot.bioreg(data.raw)
- # TODO plot both violin and boxplots
- print(variablesPlot)
+ print(boxplotPlot <- plot.bioreg(data.raw, geom="boxplot"))
+ print(violinPlot <- plot.bioreg(data.raw, geom="violin"))
# Image map
clusterPlot <- plot.pred.bioreg(data.raw, quick=quick)

0 comments on commit fa70967

Please sign in to comment.