How do I assign value labels in R?
You can use the factor function to create your own value labels. Use the factor() function for nominal data and the ordered() function for ordinal data. R statistical and graphic functions will then treat the data appriopriately. Note: factor and ordered are used the same way, with the same arguments.
How do I rename labels in R?
Key R functions
For example p + labs(title = "Main title", x = "X axis label", y = "Y axis label") changes main title and axis labels. title : plot main title. subtitle : the text for the subtitle for the plot which will be displayed below the title.
Can you label variables in R?
Variable label is human readable description of the variable. R supports rather long variable names and these names can contain even spaces and punctuation but short variables names make coding easier. Variable label can give a nice, long description of variable.