R histogram of categorical variables and continuous variables