search for: factorcols

Displaying 1 result from an estimated 1 matches for "factorcols".

2010 Apr 03
2
Export bug? Hist() vs. barchart().
Hi, If you want to export a single bar chart, this works: > png( "ET" ); > barchart( data[,"ET"] ) > dev.off() quartz_off_screen 2 But if you want to export a few of them, this does not: > factorCols <- c("MR","ET"); > sapply( factorCols, function(x) { + png( x ); + barchart( data[, x] ); + dev.off(); + } ); MR.quartz_off_screen ET.quartz_off_screen 2 2 R gives no indication of an error, but the files do not appear in the wor...