R code for the importation, visual representation, and analysis of trichotomous data