\begin{equation*}
f(x) = \frac{x-3}{x^2+3x-18} = \frac{\cancel{(x-3)}}{(x+6)\cancel{(x-3)}}; \, \text{ Restriction } \, x\neq -6,3
\end{equation*}
Here \(x=3 \) produces hole in the plot, which can be removed by simplyfying the function as
\begin{equation*}
f(x) = \frac{1}{x+6}; \, x\neq -6,3.
\end{equation*}
Here \(x=-6\) gives vertical asymptote.