I have two coordinate frames which have an offset and rotation between them.
Using the following example I tried to visualized it:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture}[thick]
\draw[-latex] (0,0) -- (4,0) node[right, text width=5em] {$X$};
\draw[-latex] (0,0) -- (0,4) node[right, text width=5em] {$Y$};
\begin{scope}[rotate=0,draw=red]
\draw[->] (3,2) -- (7,2) node[right, text width=5em] {$X'$};
\draw[->] (3,2) -- (3,6) node[right, text width=5em] {$Y'$};
\end{scope}
\draw[->, postaction={decorate, decoration={text along path, text align={center},text={${\overrightarrow{R}}{\;}$}}}] (0,0) -- (3,2) node[right, text width=5em] () {};
\end{tikzpicture}
\end{document}
once i change
\begin{scope}[rotate=0,draw=red]
to
\begin{scope}[rotate=20,draw=red]
How could I place the origin of my X'Y' coordinate frame at position (3,2) in my XY coordinate system?
In addition I would like to place $\overrightarrow{R}$ a bit higher. How could I place it above the vector?



