bin(#) and width(#) are alternatives. They specify how the data are to be aggregated into bins: bin() by specifying the number of bins (from which the width can be derived) and width() by specifying the bin width (from which the number of bins can be derived).