It can do referencing if you ask it, though sometimes it makes up references. ChatGPT can do coding for you, including R, Python, C, whatever else, and generate graphs that way, but can't do figures yet. But other AIs can.