The function \( y = x + 2 \) is a linear function, which can be rewritten in slope-intercept form \( y = mx + b \) where \( m \) is the slope and \( b \) is the y-intercept. In this case, the slope \( m = 1 \) and the y-intercept \( b = 2 \).
This line will pass through the point where \( x = 0 \) (which gives \( y = 2 \)), so one point on the line is \( (0, 2) \). Additionally, if \( x = -2 \), then \( y = -2 + 2 = 0 \), giving us another point \( (-2, 0) \).
To determine which graph correctly represents this function, we need to find a straight line that:
- Passes through the points \( (0, 2) \) and \( (-2, 0) \).
- Has a positive slope, moving upwards to the right.
Among the provided options, the graph that features a straight line passing through these points is the graph that shows an upward slanting line through the points \( (-2, 0) \) and \( (0, 2) \).
Thus, the correct choice is the image showing the upward slanting line passing through the points \( (-2, 0) \) and \( (0, 2) \).