Added tickFactor to control density of ticks