Regarding hist() function in R
0
0
Entering edit mode
Guest User ★ 13k
@guest-user-4897
Last seen 9.6 years ago
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.
• 637 views
ADD COMMENT

Login before adding your answer.

Traffic: 547 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6