most aftermarket radios have a always hot B+ lead, for the memory, that would connect to F on the above picture. most aftermarket radios also have a switched lead or accessory lead, to turn it on and off, that would connect to C on the above picture
the factory radio connects to accessory or...