Using the QR decomposition to geometrically understand a linear mapping

The QR decomposition QR of a matrix A decomposes A into a rotation an possibly a reflection given by the orthogonal matrix Q and the transformation given by R. R can further be decomposed into shears and dilations along the axes.