\documentclass[12pt]{article}

\usepackage{pstricks} % To use the standard "xcolor" package with PSTricks
\usepackage{pst-node}
\usepackage{pst-plot}

\pagestyle{empty}

\begin{document}
\psset{unit=2em,linewidth=.1}

\begin{center}
\begin{figure}
\begin{pspicture}(0,0)(10,14)
\SpecialCoor
\psaxes[labels=none, ticks=none]{->}(0,0)(-5,-5)(10,10)
% \psaxes{->}(0,0)(-5,-5)(10,10)

\psplot[linecolor=red]{-1}{10}{x neg 10 add}
\psplot[linecolor=green,arrows=->]{0}{4}{x}
\psplot[linecolor=green,linestyle=dotted]{4}{5}{x}

\psplot[linecolor=blue,arrows=->]{0}{10}{x 3 div}
\psplot[linecolor=blue,linestyle=dotted]{8.3}{9.6}{x 6.5 neg add}

\psplot[linecolor=black]{0}{3}{x neg}

\psplot[arrows=<->]{3}{8}{x 6 neg add}

\psline[linecolor=green](4.5,4.5)(5,4)
\psline[linecolor=green](5,4)(5.5,4.5)

\psline[linecolor=blue](8.8,1.2)(9.3,1.7)
\psline[linecolor=blue](9.3,1.7)(8.8,2.2)

\rput(2,10){\psframebox[linecolor=white]{$\mathcal{R}_1$}}
\rput(2,6){\psframebox[linecolor=white]{$\mathcal{R}_0$}}

\rput(-2,11){\psframebox[linecolor=white]{$y=0$}}
\rput(-1.5,12){\psframebox[linecolor=white]{$y>0$}}
\rput(-1.5,10){\psframebox[linecolor=white]{$y<0$}}

\rput(1,2){\psframebox[linecolor=white]{$w$}}

%\rput(9,4){\psframebox[linecolor=white]{$x$}}
\rput(10.2,3.5){\psframebox[linecolor=white]{$x$}}

\rput(10.5,2.5){\psframebox[linecolor=white]{$r=\frac{f(x)}{\|w\|}$}}

\rput(8,1){\psframebox[linecolor=white]{$x_\perp$}}

\rput(5.5,-2){\psframebox[linecolor=white]{$\frac{-w_0}{\|w\|}$}}




\end{pspicture}
\end{figure}
\end{center}

\end{document}
