Types of Plants. Plants such as aloe, agave, prickly pear, hollies, barberries, evergreen huckleberry or other succulents can be planted as a border to keep dogs out of a garden, as well as hedges to physically block the animal.