Re: [R] ggplot with major and MINOR tick marks on a log scale

2025-01-21 Thread Rui Barradas
Às 19:38 de 21/01/2025, Rui Barradas escreveu: Às 02:18 de 21/01/2025, Sorkin, John escreveu: I have used ggplot to create a graph on which the y-axis is on the log scale. (see data and code, below.) I would like to add minor tick marks, which will also be on the log scale. The data and code ar

Re: [R] ggplot with major and MINOR tick marks on a log scale

2025-01-21 Thread Rui Barradas
Às 02:18 de 21/01/2025, Sorkin, John escreveu: I have used ggplot to create a graph on which the y-axis is on the log scale. (see data and code, below.) I would like to add minor tick marks, which will also be on the log scale. The data and code are below. I hope somone can tell me how I can m

Re: [R] ggplot with major and MINOR tick marks on a log scale

2025-01-20 Thread Kimmo Elo
Hi, this code could/should work: --- snip --- PopByDayByAQIminus %>% ggplot(aes(x=AQI_Cat,y=TotalPop/100), group=Day,color=Day,shape=as_factor(Day), linetype = as_factor(Day)) + geom_point(size=4,alpha=0.7)+ geom_line(linewidth=1.5,alpha=0.3)+ theme(axis

Re: [R] ggplot with major and MINOR tick marks on a log scale

2025-01-20 Thread Bert Gunter
dget() should be dput(), of course. But you don't need dput() either, as assigning the structure() call suffices. -- Bert On Mon, Jan 20, 2025 at 6:18 PM Sorkin, John wrote: > I have used ggplot to create a graph on which the y-axis is on the log > scale. (see data and code, below.) I would lik

[R] ggplot with major and MINOR tick marks on a log scale

2025-01-20 Thread Sorkin, John
I have used ggplot to create a graph on which the y-axis is on the log scale. (see data and code, below.) I would like to add minor tick marks, which will also be on the log scale. The data and code are below. I hope somone can tell me how I can modify the ggplot code so it produces minor tick m