Modification of the gender of seed plants in varying conditions