0

histogram with different type of crime

Here is the code I have used:

g <- ggplot(df, aes(x=TYPE.OF.CRIME))
g + geom_histogram(bins=30,color="gray",stat="count")  

Warning message:
Ignoring unknown parameters: binwidth, bins, pad

from the code above not all type of crime are vissible, so I want all to be seen.

Rui Barradas
  • 44,483
  • 8
  • 22
  • 48
  • 1
    In the accepted answer to [this famous question](https://stackoverflow.com/questions/1330989/rotating-and-spacing-axis-labels-in-ggplot2) you can change the axis labels angle. – Rui Barradas Jun 26 '20 at 13:39

0 Answers0