A line that joins dots plotted on a graph paper is called a line graph. It is used to show the variation of a quantity with respect to another. A line graph represents two pieces of information that are usually related.
Taking the perspective of a student learning astronomy or physics, graphs are useful because they can summarize a LOT of information into one picture. When scientists do research graphs are often the only way to represent data that has been collected.