Dear Rui Barradas,
Many thanks for your time.
Though I have not used ggplot before, I quickly installed all the required
packages and attempted your code. It produced the plot and solved the
initial problem of the wrong labels on x-axis.
But I noticed several other problems with the plot (some of
Hi Ogbos,
The following code may get you close to what you want. I have used the
names of the columns in "dta" as it is less confusing for me. I think
you meant to request horizontal ablines as none appeared in the
example. In order to get the axis tick label "Sun" you would have to
increase the x
Hello,
I have just noticed that the facets' labels are on the right, in your
code example they are on the left. Change the following:
facet_grid(rows = vars(variable), switch = "y")
Hope this helps,
Rui Barradas
Às 18:29 de 01/05/20, Rui Barradas escreveu:
Hello,
If you don't mind a ggp
Hello,
If you don't mind a ggplot2 solution, here it is.
As usual with ggplot, it's better to have the data in long format so I
also load packages dplyr and tidyr. The reshaping accounts for half the
code, the code for the graph itself is not very complicated.
library(ggplot2)
library(scal
4 matches
Mail list logo