I'm interested in the intersection points of two functions: $y=r+x$, where $r$ is the constant, and $y=ln(1+x)$. The following code plots the two intersection points for different (negative values) of $r$ correctly and as expected:
Manipulate[
pts = Quiet[Solve[y == r + x && y == Log[1 + x], {x, y}]];
Graphics[Point[{x, y} /. pts], PlotRange -> {{-1, 4}, {-3, 2}}, FrameLabel -> {x, y}, Frame -> True],
{r, -2, 0}]
However, if I try to plot data corresponding only to $x$ coordinate (or $y$) as a function of constant $r$ using a similar code (logic) I get only one intersection point (for $r<0$). The code in question is the following:
xr[r_] := Quiet[Solve[y == r + x && y == Log[1 + x], {x, y}]][[1,1](*Part: flattening and selecting x only*)
Plot[Evaluate[x /. xr[r]], {r, -2, 0}, FrameLabel -> {r, x}, Frame -> True, PlotRange -> All]
Why isn't Plot[] able to access both intersection points (it did it above)? It shows only the negative $x$ values (positive branch is omitted).
P.S. Solve is also unable to produce the complete result by solving $r+x-ln(1+x)=0$ for $x$, that's the reason why I'm solving the system of two equations rather than this single equation.