What type of transformation takes the graph of f(x)=|x| to the graph of g(x)=|4+x|?

A. horizontal translation of 4 units right

B. horizontal translation of 4 units left

C. vertical translation of 4 units up

D. vertical translation of 4 units down