[BioC] Regarding hist() function in R

Bharat Upadrasta [guest] guest at bioconductor.org
Mon May 5 09:03:59 CEST 2014


Hi,

I have a dataset with attributes {x1, x2, x3, d1, d2, d3} wherein d1, d2 and d3 are dummy variables. When I read the dataset as a dataframe (testDF) and use the function hist(testDF) to plot the individual attributes, the dummy variables are not plotted (absolute omission regardless of parameter tweaking in the function). Could someone please tell me why this is so?. - As for generating the histograms, I have used ggplot2 and hist() in a loop successfully. I'm just seeking an explanation as to why hist(data.frame) omits dummy variables in plot generation.

Thanks!
Bharat 

 -- output of sessionInfo(): 

R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] splines   grid      stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] dummies_1.5.6   Hmisc_3.14-3    Formula_1.1-1   survival_2.37-7 lattice_0.20-23

loaded via a namespace (and not attached):
[1] cluster_1.14.4      latticeExtra_0.6-26 RColorBrewer_1.0-5  tools_3.0.2  

--
Sent via the guest posting facility at bioconductor.org.



More information about the Bioconductor mailing list