[Returnanalytics-commits] r2621 - pkg/PerformanceAnalytics/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Jul 22 21:36:44 CEST 2013


Author: peter_carl
Date: 2013-07-22 21:36:44 +0200 (Mon, 22 Jul 2013)
New Revision: 2621

Modified:
   pkg/PerformanceAnalytics/R/chart.Boxplot.R
Log:
- fix allows passthrough of horizontal parameter

Modified: pkg/PerformanceAnalytics/R/chart.Boxplot.R
===================================================================
--- pkg/PerformanceAnalytics/R/chart.Boxplot.R	2013-07-22 18:34:24 UTC (rev 2620)
+++ pkg/PerformanceAnalytics/R/chart.Boxplot.R	2013-07-22 19:36:44 UTC (rev 2621)
@@ -109,10 +109,10 @@
     ) # end switch
 
     if(as.Tufte){
-        boxplot(R[,column.order], horizontal = TRUE, names = names, main = main, xlab = xlab, ylab = "", pars = list(boxcol = "white", medlty = "blank", medpch = median.symbol, medlwd = 2, medcex = .8, medcol = colorset[column.order], whisklty = c(1,1), whiskcol = colorset[column.order], staplelty = "blank", outpch = outlier.symbol, outcex = .5, outcol = colorset[column.order] ), axes = FALSE, ...)
+        boxplot(R[,column.order], horizontal = horizontal, names = names, main = main, xlab = xlab, ylab = "", pars = list(boxcol = "white", medlty = "blank", medpch = median.symbol, medlwd = 2, medcex = .8, medcol = colorset[column.order], whisklty = c(1,1), whiskcol = colorset[column.order], staplelty = "blank", outpch = outlier.symbol, outcex = .5, outcol = colorset[column.order] ), axes = FALSE, ...)
     }
     else{
-        boxplot(R[,column.order], horizontal = TRUE, names = names, main = main, xlab = xlab, ylab = "", pars = list(boxcol = colorset[column.order], medlwd = 1, medcol = colorset[column.order], whisklty = c(1,1), whiskcol = colorset[column.order], staplelty = 1, staplecol = colorset[column.order], staplecex = .5, outpch = outlier.symbol, outcex = .5, outcol = colorset[column.order] ), axes = FALSE, boxwex=.6, ...)
+        boxplot(R[,column.order], horizontal = horizontal, names = names, main = main, xlab = xlab, ylab = "", pars = list(boxcol = colorset[column.order], medlwd = 1, medcol = colorset[column.order], whisklty = c(1,1), whiskcol = colorset[column.order], staplelty = 1, staplecol = colorset[column.order], staplecex = .5, outpch = outlier.symbol, outcex = .5, outcol = colorset[column.order] ), axes = FALSE, boxwex=.6, ...)
     } # end else
 
     if(!is.null(show.data)) {



More information about the Returnanalytics-commits mailing list