
\documentclass{article}

\usepackage{tikz}



\usepackage{xepersian}


\begin{document}



\begin{tikzpicture}[scale=1]


        
  \draw[->] (-5,0) -- (5,0) node[right] {$x$};
  \draw[->] (0,-5) -- (0,5) node[above] {$f(x)$};

  \foreach \x/\xtext in {-4/-4,-3/-3,-2/-2,-1/-1,1/+1,2/+2, 3/+3,4/+4}
    \draw[shift={(\x,0)}] (0pt,2pt) -- (0pt,-2pt) node[below] {$\xtext$};

  \foreach \y/\ytext in {-4/-4,-3/-3,-2/-2,-1/-1,1/+1, 2/+2, 3/+3,4/+4}
    \draw[shift={(0,\y)}] (2pt,0pt) -- (-2pt,0pt) node[left] {$\ytext$};







\end{tikzpicture}

\end{document}