revamped plot_one to handle factor conversion