Possible Duplicate:
how to define fill colours in ggplot histogram?
I want to plot (histogram) counts of fishes per length class from a data frame which summarize this information in a binned format (data.frame(...,length=length, counts=N)). I'm a new user of ggplot2, but seems It could be a good choice. Can I create this histogram from a data.frame object?
Sorry for being so brief, Here is the structure of a piece of df,
'data.frame': 416 obs. of 3 variables:
$ specie: Factor w/ 1 level "speciesA": 1 1 1 1 1 1 1 1 1 1 ...
$ length: num 34.5 35 35.5 36 36.5 37 37.5 38 38.5 39 ...
$ Counts: num 2 0 0 0 1 0 1 1 0 1 ...
In this case, fishers catch 2 individuals 34.5 cm large, 1 36.5, and so on... Thank you very much for your answers