Hi there,
I am trying to add a title to likert plot. The plot itself is displaying correctly. I just can't add a title. I have tried using the following code:
survey_p1 <- plot(likert(survey), ordered = F, wrap= 60, title= "Taa1: How do you feel about the following statements?"))
but get the following error message:
Error: unexpected ')' in "survey_p1 <- plot(likert(survey), ordered = F, wrap= 60, title= "Taa1: How do you feel about the following statements?"))".
Any help or advice is much appreciated.
Kind Regards
Aaron
The error is due to the double parentheses at the end. If you drop one, the error goes away.
For the plot title, try moving the title out of the plot()
function and into its own line. Below is an example using the mtcars data set.
plot(mtcars[c('cyl', 'mpg')])
title(main = 'Taa1: How do you feel about the following statements?')
1 Like
system
Closed
3
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.