How can one fit a histogram in a range

In the documentation you pointed the option "R" is between quotes.
You missed them. I do not think this documentation should be updated.