The answer is both.

Plants can be fucked up transexuals by genetics and by environment.