3
Hello, I’m trying to create a chart with the following code:
boxplot(covid_DF$obitosNovos ~ month(covid_DF$data),
main="Média de obitos novos por mês no Distrito Federal",
xlab="Mês",
ylab="Quantidade de casos novos",
col="#db525a",
border="#050627"
)
The chart appears right, but when I try to put the function to add a grid to make the user view easier:
boxplot(covid_DF$obitosNovos ~ month(covid_DF$data),
main="Média de obitos novos por mês no Distrito Federal",
xlab="Mês",
ylab="Quantidade de casos novos",
col="#db525a",
border="#050627",
panel.first = grid()
)
Adding the grid function at the end does not work. Could you help me?
Welcome to Stackoverflow! Unfortunately, this question cannot be reproduced by anyone trying to answer it. Please take a look at this link (mainly in the use of function
dput
) and see how to ask a reproducible question in R. So, people who wish to help you will be able to do this in the best possible way.– Marcus Nunes