How to modify the font size of the semivariogram axis?

59 views Asked by At

I used the R language to fit the semivariogram and the Gaussian model. During the drawing process, the font size of the coordinate axis was too small. The plot() function used could not adjust the font size. How can I modify the code? Here is the code.

library(gstat)
n <- 100  
X <- runif(n, 0, 100)
Y <- runif(n, 0, 100)
ref_exponential <- exp(runif(n, 0, 1))
data_exponential <- data.frame(X, Y, ref = ref_exponential)
coordinates(data_exponential) <- ~X + Y
variogram_model_exponential <- variogram(ref ~ 1, data_exponential)
gaussian_model_exponential <- fit.variogram(variogram_model_exponential, vgm("Gau"))
plot(variogram_model_exponential, model = gaussian_model_exponential, cex.lab = 1.5, cex.axis = 1.5)

I hope you can help me adjust the axis font size. Thank you!

1

There are 1 answers

0
Cassieleee On

I'm excited to share that I discovered the solution to this question while navigating through my exploration. I successfully achieved my goal by specifying scales = list(cex = 1.5). When it comes to plotting functions, changing the label size is similar to the parameter settings of xyplot().