I am reading "Introduction to smooth manifolds" by Lee and one place is very unclear for me: Let $P$ and $Q$ be any complementary subspaces of $V$ (which is an $n$-dimensional real vector space) of dimensions $k$ and $n-k$, respectively, so that $V$ decomposes as a direct sum $V=P\bigoplus Q$.(This part is clear for me) The graph of any linear map $X:P\rightarrow Q$ can be identified with a $k$-dimensional subspace $\Gamma(X)\subseteq V$, defined by $$\Gamma(X)=\left \{ v+Xv:v\in P \right \}$$
Earlier in the same book there was a example of a function graph being a manifold. And the graph of the continuous function $f:U \subseteq R^{n} \rightarrow R^{k}$ is the subset of $R^{n}\times R^{k}$ defined by $$\Gamma(X)=\left \{ (x,y)\in R^{n}\times R^{k}:x\in U, y=f(x) \right \}.$$
By this definition the graph of the linear map $X$ would be a subset of $R^{k}\times R^{n-k}$, but the book says it is a $k$ dimensional subspace of $V$. And this is where I am confused. What am I overlooking?
For any $v\in P$, $(v,Xv)=0$ iff $v=0$. Therefore the nullity of the linear map $f:v\mapsto(v,Xv)$ is zero and by the rank-nullity theorem, $\operatorname{rank}f\equiv\dim\{(v,Xv):v\in P\}=\dim P=k$. Hence the graph of $X$, i.e. $\{(v,Xv):v\in P\}\subset\mathbb{R}^k\times\mathbb{R}^{n-k}$, can be identified with the $k$-dimensional subspace $\{v+Xv:v\in P\}\subset\mathbb{R}^n$.