What are some plants you can put in your outdoor garden to keep the bugs away?

Some plants known to be bug deterrents are as follows: thyme, lavender, allium, petunia, basil, marigold, lemongrass, chrysanthemum, and mosquito plant.