-
How can one control how many tick marks appear on the axes? |
Beta Was this translation helpful? Give feedback.
Answered by
pbreheny
Apr 16, 2024
Replies: 1 comment
-
library(visreg)
fit <- lm(Ozone ~ Solar.R + Wind + Temp, data=airquality)
# Base graphics
visreg(fit, "Wind", xaxt='n')
axis(1, labels = 2:21, at=2:21) # ggplot
visreg(fit, "Wind", gg=TRUE) +
ggplot2::scale_x_continuous(breaks=2:21, labels=2:21)
#> Loading required namespace: ggplot2 Created on 2024-04-16 with reprex v2.1.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pbreheny
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Created on 2024-04-16 with reprex v2.1.0