Alternatives to planting in the ground include using raised beds, which provide good drainage and easy access for maintenance. Vertical gardening using trellises or hanging baskets is also an option, especially for vining plants like tomatoes or cucumbers. Additionally, container gardening on patios or balconies can be a practical alternative for growing vegetables in limited space.