R Barplot Switch Axis. It uses a line chart as example and provides the reproducible code.