I’ve been working with R language, I’ve created a histogram from a data file this way:
a <- read.table("_datafile.txt");
b <- table(a);
c <- as.numeric(names(b));
hist(c, 100);
This is the result, in the attached image:
Histogram http://www.imagehost.it/dm/FILK/istogrammaBis.png
My problem is that I’d like to exclude the 1rst bar of the histogram.
D’you know the R command to do it?
Thanx
histuses ‘Sturges’ breaks (equal spaced intervals of number determined bynclass.Sturges) as the default break locations, but you are over-riding that. The second break value would beseq( min(x), max(x), by= diff(range(x))/10 )[2]
So:
I reduced the number of bins to keep the categories the same. If you want to see the formula for the number of breaks in the default just type:
It’s not uncommon to find people puzzled by the behavior of
histwith small numbers of equally spaced observations. because the result looks irregular. Try: