I am plotting the following data in R to generate a bar graph:
structure(c(5483L, 28034L, 7995L, 5199L, 6785L, 7452L, 7692L), .Dim = 7L, .Dimnames = structure(list(c("dom", "qua", "qui", "sáb", "seg", "sex", "ter")), .Names = ""), class = "table")
I'm generating the following chart:
coresBasicas <- c(1:7)
DataDeAcessoPlot<- barplot(table(DataDeAcesso[,4]),
main = "Exibições de Páginas por Dias da Semana",
ylim = c(0,30000),
xlab="Dias da Semana",
col = coresBasicas,
ylab="Exibições de Páginas",
cex.axis = 0.6,
#cex.names = 0.6,
las=1
)
text(x=DataDeAcessoPlot, y=table(DataDeAcesso[,4]), label=table(DataDeAcesso[,4]), pos = 3, xpd=NA)
I wanted to know how to organize the graph columns in the following order: Sun, Mon, Tue, Wed, Thu, Fri, Sat. Thank you in advance!