This graph shows the result of changing the frequency of the alternating voltage from an AC power supply:
Notice that only the horizontal distance between the peaks (called the time period) changes. The height (amplitude) remains the same.