Added a data-transformation argument to makeGraph function