Allow setting one of the limits of scale

Implements setting of only one limit of a continuous scale by specifying
NA for the limit which you don't want to set.
Style fixes suggested by winston