North to south is best along the coast because the scenic turnouts will be on your side of the road. I'd plan on 3 days to get from SF to SD if you take the coast road. A day trip from SF to Yosemite is a bit much, plan on spending a night near the park.