\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee1.tikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[american voltage source, l=$V_\mathrm{in}$, invert] (0,1.6) to[empty diode] (1.6,1.6) -- (2.6,1.6) node[ocirc]{};
\draw (1.6,1.6) node[circ]{} to[R, l=$R_1$] (1.6,0) node[circ]{};
\draw (0,0) -- (2.6,0) node[ocirc]{};
\draw (2.6,1.3) node[font=\small]{$+$} (2.6,0.3) node[font=\small]{$-$};
\node at (3.2,0.8) {$V_\mathrm{out}$};
\begin{axis}[sketch, at={(3cm,-0.6cm)}, width=4.8cm, height=3.6cm, xmin=-0.8, xmax=1.4, ymin=-0.3, ymax=1, xlabel={$V_\mathrm{in}$}, ylabel={$V_\mathrm{out}$}]
  \addplot[line width=1.4pt] coordinates {(-0.8,0) (0.4,0) (1.3,0.9)};
  \draw[dim] (axis cs:0.8,0.4) -- (axis cs:1.0,0.4) -- (axis cs:1.0,0.6) node[midway, right, font=\scriptsize]{1};
\end{axis}
\end{circuitikz}
\end{document}
