Reputation: 49
Hey guys so I'm just trying things out on sentiment analysis however, when I out put my code on R-markdown after knitting, it's showing me the output which includes my graph and the unwanted output circled in red. I only want the bar graph to show.
This is the out put I get.
Any ideas how I can fix this?
Upvotes: 2
Views: 321
Reputation: 4534
The output is coming from the call to theme which is separate to your plot as the +
-sign is missing after labs
and before theme
. Add the +
and everything will be fine.
you may recognize that the text of the x axis is has no angle of 45
Upvotes: 2
Reputation: 91
I think you're missing a comma at the top of your code chunk.
Try:
{r, echo = FALSE, message = FALSE, warning = FALSE}
Upvotes: 1