The function f(x) = x^3 is transformed to f(x) = 4x^3. Which statement describes the graph of the transformed function?
A. The graph was translated up by 4 units.
B. The graph was stretched horizontally by a factor of 4.
C. The graph was translated down by 4 units.
D. The graph was stretched vertically by a factor of 4.