The graph of a function is a visual representation of the relationship between two variables. In other words, it shows where the values of those variables lie on the same axis. Graphs can be used to represent functions or data sets. They are usually plotted using coordinates, such as x and y axes.