I have the following problem:
When creating a graph, working from R-Markdown, and when changing the title and in this a special character is included as accents, ñ, etc. I have to change the enconding
and place the following instruction: Sys.setlocale("LC_CTYPE", 'en_US.UTF-8')
and accept the special characters when running the chunk
where the graph appears in the expected way, for example:
But when I compile the HTML using knit, I get the following:
This happens using ggplot, graphs of base R and other graphs provided by other libraries.
How can I fix this issue?