I have an array of values as input which can be plotted as follows…
Using vDSP_zvmagsD
I get an array that I can plot as follows…
How do I get the frequency range that I need to label the x-axis?
The size of your frequency bins depend on the sampling rate of your input signal and the size of your FFT window:
input frequency / input samples = hz/frequency bin
Here you can find a more detailed answer by electronics stackexchange user Mark. There you will also find useful information about the tradeof between frequency resolution (bin size) and temporal resolution (when does which frequency occur)