Drugs and other chemicals are examples of how environmental factors affect gene expression. These drugs can either 'activate' or 'inhibit' the expression of genes that you have. For example, taking drugs while being pregnant affects the genetic makeup of the baby inside you.