As you can see, most numbers are rational. But, when you come across pi or when you have a decimal that goes on forever without repeating (like some square roots), it tends to be irrational.
Understand that a function is a rule that assigns to each input exactly one output. The graph of a function is the set of ordered pairs consisting of an input and the corresponding output.