Displaying 2 results from an estimated 2 matches for "_log10".
Did you mean:
log10
2025 Jan 21
1
ggplot with major and MINOR tick marks on a log scale
...axis minor breaks tick marks.
They both use guide_axis(minor.ticks = TRUE) but the 2nd plot spaces the
tick marks as in logarithmic paper with an auxiliary function taken from
a StackOverflow post.
Also, instead of scale_y_continuous(trans = "log10") I have used the
equivalent scale_y_log10(), it makes the code simpler and the effect is
exactly the same. From ?scale_y_continuous:
"There are three variants that set the transform argument for commonly
used transformations: ?scale_*_log10()?, ?scale_*_sqrt()? and
?scale_*_reverse()?."
Now the code.
PopByDayByAQIminus %...
2025 Jan 21
3
ggplot with major and MINOR tick marks on a log scale
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 marks on a log scale.
Thank you,
John
?
PopByDayByAQIminus <- dget(
structure(list(Day =