Hello, I'm having problems with ggplot2 in a histogram.
The code:
ggplot(data.combined[1:891,], aes(x = Age, fill=Survived)) +
facet_wrap(~Sex + Pclass) +
geom_histogram(binwidth = 10) +
xlab ("Age") +
ylab ("Total Count")
With the following code, using exactly the same data as a tutorial I'm getting a histogram where the value of 0 (initial) is in the middle of the first box, already in the tutorial the subject box starts at zero.
Can anyone help me with this? I'm worried that along with the difference between a being at the beginning and another in the middle I get distortions in reading the information on my chart, impairing interpretation.
How should you get:
HowdoIget:
Thank you!