![]() We will use the converted codes to “c”‘s argument. Therefore, we first have to convert the character variable into a categorical variable and then into numerical variable using “cat.codes” on categorical variable. We need them as numerical numbers corresponding to each group. However, the variable we want to use to color that data points is stored as character/string variable in the dataframe.
0 Comments
Leave a Reply. |