By the process of convection, heat is always transferred vertically upwards. This happens because the medium particles near the source of heat absorb heat from the source, their volume expands, their density becomes lighter and they start moving upwards.