For a digital option with payoff $1_{S_T > K}$, note that, for $\varepsilon > 0$ sufficiently small,
\begin{align}
1_{S_T > K} &\approx \frac{(S_T-(K-\varepsilon))^+ - (S_T-K)^+}{-\varepsilon}.\tag{1}
\end{align}
That is,
The value of the digital option
\begin{align*}
D(S_0, T, K, \sigma) &= -\frac{d C(S_0, T, K, \sigma)}{d K},
\end{align*}
where $C(S_0, T, K, \sigma)$ is the call option price with payoff $(S_T-K)^+$. Here, we use $d$ rather than $\partial$ to emphasize the full derivative.
If we ignore the skew or smile, that is, the volatility $\sigma$ does not depend on the strike $K$, then
\begin{align*}
D(S_0, T, K, \sigma) &= -\frac{d C(S_0, T, K, \sigma)}{d K}\\
&= N(d_2)\\
&= N\big(d_1-\sigma \sqrt{T}\big). \tag{2}
\end{align*}
That is, the digital option price has the same shape as the corresponding call option delta $N(d_1)$. Similarly, the digital option delta $\frac{\partial N(d_1-\sigma \sqrt{T})}{\partial S_0}$ has the same shape as the call option gamma $\frac{\partial N(d_1)}{\partial S_0}$. Here, we note that they have the same shape, but they are not the same.
However, if we take the volatility skew into consideration, the above conclusion does not hold. Specifically,
\begin{align*}
D(S_0, T, K, \sigma) &= -\frac{d C(S_0, T, K, \sigma)}{d K}\\
&= -\frac{\partial C(S_0, T, K, \sigma)}{\partial K} - \frac{\partial C(S_0, T, K, \sigma)}{\partial \sigma} \frac{\partial \sigma}{\partial K}\\
&= N(d_2) - \frac{\partial C(S_0, T, K, \sigma)}{\partial \sigma} \frac{\partial \sigma}{\partial K},\tag{3}
\end{align*}
which may not have the same shape as $N(d_2)=N(d_1-\sigma \sqrt{T})$. In this case, we prefer to value the digital option using the call-spread approximation given by (1) above instead of the analytical formula (2) or (3).