search for: hrm2

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

Did you mean: hrm
2013 Apr 18
2
How to keep plot title same as column name using apply/sapply?
...52922685, 643.558745779806, 5532.10081652847, -4512.80115728638, -5839.1178791698, 7341.05048720629, -1299.37511688102, -13151.5558568303, -6442.78100296569, -975.590624649323, 298.440121450997, 10808.9562034117, 3210.22497745543), .Dim = c(10L, 5L), .Dimnames = list(NULL, c("Tmrw", "hRm2", "vm", "Fluid", "SM"))) par(mfrow=c(3, 2)) apply(a, 2, function(x){hist(x, main="column name here")}) This plots, but doesn't plot title. But, > apply(a,2,function(x){colnames(x)}) NULL Maybe the column names is lost? But, I see column names...