On Jan 18, 2008 4:49 PM, [EMAIL PROTECTED] wrote:
Dear list,
I have a categorical variable in a data.frame that I would like to
plot using a histogram to show number of events. Values are 0, 1 and
some NAs. I can´t make the hist() function to
1) include a column with the number of NAs
2)
Dear list,
I have a categorical variable in a data.frame that I would like to
plot using a histogram to show number of events. Values are 0, 1 and
some NAs. I can´t make the hist() function to
1) include a column with the number of NAs
2) have the x axis to be categorical, I always get 0, 0.2,
Typical plots with vertical bars are not histograms. Consider barplot
or plot(*, type = h) for such bar plots. . But no worry, I've mixed
them up myself a number of times.
Or you can use ggplot2, which will do the right thing regardless of
whether you have continuous or categorical data:
3 matches
Mail list logo