In simulations with an idealized general circulation model (GCM), the relative roles of baroclinicity, heating from below, and bottom drag are explored systematically. Equatorial superrotation generally occurs when the heating from below is sufficiently strong. However, the threshold heating at which the transition to superrotation occurs increases as the baroclinicity or the bottom drag increase. The greater the baroclinicity, the stronger the angular momentum transport out of low latitudes by baroclinic eddies of extratropical origin. This competes with the angular momentum transport toward the equator by convectively generated Rossby waves and thus can prevent a transition to superrotation. Equatorial bottom drag damps both the mean zonal flow and convectively generated Rossby waves, weakening the equatorward angular momentum transport as the drag increases; this can also prevent a transition to superrotation. The strength of superrotating equatorial jets scales approximately with the square of their width. When they are sufficiently strong, their width, in turn, scales with the equatorial Rossby radius and thus depends on the thermal stratification of the equatorial atmosphere. The results have broad implications for planetary atmospheres, particularly for how superrotation can be generated in giant planet atmospheres and in terrestrial atmospheres in warm climates.